diff options
author | Campbell Barton <ideasman42@gmail.com> | 2008-09-18 07:05:02 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2008-09-18 07:05:02 +0400 |
commit | 8d1163c639253e76fec3f69fead716a51068ea37 (patch) | |
tree | 8e72786b11aaef86cbe0a6459dec908a5864065d /SConstruct | |
parent | beb7738a299579e771295e013961ef3af139d1e5 (diff) |
scons options BF_CXX, WITH_BF_STATICCXX, BF_CXX_LIB_STATIC for static linking to stdc++ because of problems running blender on some systems.
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/SConstruct b/SConstruct index 92547bf6756..356f116e290 100644 --- a/SConstruct +++ b/SConstruct @@ -241,6 +241,13 @@ if len(B.quickdebug) > 0 and printdebug != 0: for l in B.quickdebug: print "\t" + l +# remove stdc++ from LLIBS if we are building a statc linked CXXFLAGS +if env['WITH_BF_STATICCXX']: + if 'stdc++' in env['LLIBS']: + env['LLIBS'] = env['LLIBS'].replace('stdc++', ' ') + else: + print '\tcould not remove stdc++ library from LLIBS, WITH_BF_STATICCXX may not work for your platform' + # check target for blenderplayer. Set WITH_BF_PLAYER if found on cmdline if 'blenderplayer' in B.targets: env['WITH_BF_PLAYER'] = True |