mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-21 07:31:26 +02:00
Fix LINKFLAGS env variable being overwritten when compiling for OS X
This commit is contained in:
@@ -210,7 +210,8 @@ def CheckBit(context):
|
|||||||
def CheckFramework(context, framework):
|
def CheckFramework(context, framework):
|
||||||
import SCons.Conftest
|
import SCons.Conftest
|
||||||
#Extreme hack, TODO: maybe think of a better one (like replicating CheckLib here) or at least just fix the message
|
#Extreme hack, TODO: maybe think of a better one (like replicating CheckLib here) or at least just fix the message
|
||||||
oldLinkFlags = context.env.Append(LINKFLAGS=["-framework", framework])
|
oldLinkFlags = env["LINKFLAGS"]
|
||||||
|
context.env.Append(LINKFLAGS=["-framework", framework])
|
||||||
context.Display("Checking for Darwin Framework {0}...".format(framework))
|
context.Display("Checking for Darwin Framework {0}...".format(framework))
|
||||||
ret = SCons.Conftest.CheckLib(context, ["m"], autoadd = 0)
|
ret = SCons.Conftest.CheckLib(context, ["m"], autoadd = 0)
|
||||||
context.did_show_result = 1
|
context.did_show_result = 1
|
||||||
|
Reference in New Issue
Block a user