Skip to content

Commit

Permalink
use -static-libstdc++ with --static, check for libdl on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob1 committed May 29, 2015
1 parent 6c725cc commit 315b07c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 315b07c

Please sign in to comment.