makepanda: Don't look for macOS framework when cross-compiling

This commit is contained in:
rdb 2024-11-26 16:40:49 +01:00
parent fa25c51d30
commit 7191fb1ed6
1 changed files with 1 additions and 1 deletions

View File

@ -1846,7 +1846,7 @@ def SmartPkgEnable(pkg, pkgconfig = None, libs = None, incs = None, defs = None,
DefSymbol(target_pkg, d, v)
return
elif not custom_loc and GetHost() == "darwin" and framework is not None:
elif not custom_loc and GetHost() == "darwin" and GetTarget() == "darwin" and framework is not None:
prefix = SDK["MACOSX"]
if (os.path.isdir(prefix + "/Library/Frameworks/%s.framework" % framework) or
os.path.isdir(prefix + "/System/Library/Frameworks/%s.framework" % framework) or