Skip to content

Commit

Permalink
Fix LINKFLAGS env variable being overwritten when compiling for OS X
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob1 committed Sep 12, 2017
1 parent 4f52d34 commit e458d67
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion SConscript
Expand Up @@ -210,7 +210,8 @@ def CheckBit(context):
def CheckFramework(context, framework):
import SCons.Conftest
#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))
ret = SCons.Conftest.CheckLib(context, ["m"], autoadd = 0)
context.did_show_result = 1
Expand Down

0 comments on commit e458d67

Please sign in to comment.