From cbd25a4d802afa7389df4a51e6964c0f4f4a64a6 Mon Sep 17 00:00:00 2001 From: rdb Date: Tue, 26 Nov 2024 16:40:49 +0100 Subject: [PATCH] makepanda: Don't look for macOS framework when cross-compiling Backport of 7191fb1ed68e470cdc7b11f3b5b74544991caea0 --- makepanda/makepandacore.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/makepanda/makepandacore.py b/makepanda/makepandacore.py index 74a4307a29..4df2de0e78 100644 --- a/makepanda/makepandacore.py +++ b/makepanda/makepandacore.py @@ -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