You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-05 12:10:55 +00:00
Revert "Change LINKFLAGS to FRAMEWORKS which is supported since Scons release 0.96.91"
This reverts commit 2e152b945f.
SCons `FRAMEWORKS` is, according to their latest docs, only supported
"On Mac OS X with gcc". While the "with gcc" part seems bogus, #36795
did introduce a link failure for our osxcross toolchain for compiling
macOS binaries from Linux. SCons probably fails to detect this as a
macOS target and does not use its `FRAMEWORKS` logic properly.
So using `LINKFLAGS` as we used to is the more portable solution.
This commit is contained in:
@@ -228,8 +228,7 @@ def configure(env):
|
||||
env.Append(CPPDEFINES=['SERVER_ENABLED', 'UNIX_ENABLED'])
|
||||
|
||||
if (platform.system() == "Darwin"):
|
||||
env.AppendUnique(FRAMEWORKS=['Cocoa', 'Carbon', 'IOKit'])
|
||||
env.Append(LIBS=['z'])
|
||||
env.Append(LINKFLAGS=['-framework', 'Cocoa', '-framework', 'Carbon', '-lz', '-framework', 'IOKit'])
|
||||
|
||||
env.Append(LIBS=['pthread'])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user