Permalink
Browse files

use -static-libstdc++ with --static, check for libdl on linux

  • Loading branch information...
jacob1 committed May 29, 2015
1 parent 6c725cc commit 315b07c2940f4d331143af774fa628309feac7d3
Showing with 6 additions and 2 deletions.
  1. +6 −2 SConscript
@@ -294,6 +294,10 @@ def findLibs(env, conf):
else:
FatalError("lua.h not found")
#needed for static lua compiles (in some cases)
if platform == "Linux" and not conf.CheckLib('dl'):
FatalError("libdl not found")
#Look for fftw
if not GetOption('nofft') and not conf.CheckLib(['fftw3f', 'fftw3f-3', 'libfftw3f-3', 'libfftw3f']):
FatalError("fftw3f development library not found or not installed")
@@ -451,8 +455,8 @@ elif GetOption('release'):
if GetOption('static'):
if not msvc:
env.Append(CCFLAGS=['-static-libgcc'])
env.Append(LINKFLAGS=['-static-libgcc'])
env.Append(CCFLAGS=['-static-libgcc', '-static-libstdc++'])
env.Append(LINKFLAGS=['-static-libgcc', '-static-libstdc++'])
if platform == "Windows":
env.Append(CPPDEFINES=['PTW32_STATIC_LIB'])
if not msvc:

0 comments on commit 315b07c

Please sign in to comment.