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

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

View File

@ -1831,7 +1831,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 != 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