Permalink
Browse files

Fix LINKFLAGS env variable being overwritten when compiling for OS X

  • Loading branch information...
jacob1 committed Sep 12, 2017
1 parent 4f52d34 commit e458d675bf8756a22a69636852e1eba2921de85d
Showing with 2 additions and 1 deletion.
  1. +2 −1 SConscript
@@ -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

0 comments on commit e458d67

Please sign in to comment.