Browse Source

[scons] link -static-libgcc instead of gcc_s

personal/stbuehler/cleanup-build
Stefan Bühler 4 years ago
committed by Glenn Strauss
parent
commit
2144cd2e39
  1. 3
      src/SConscript

3
src/SConscript

@ -245,6 +245,9 @@ fullstatic_linkflags = [staticenv['LINKFLAGS'], '-static']
if (('pthread' in fullstatic_libs) or ('pcre' in fullstatic_libs)) and (platform.system() == 'Linux'):
fullstatic_linkflags += ['-Wl,--whole-archive','-lpthread','-Wl,--no-whole-archive']
fullstatic_libs.remove('pthread')
if 'gcc_s' in fullstatic_libs:
fullstatic_linkflags += ['-static-libgcc']
fullstatic_libs.remove('gcc_s')
## includes all modules, linked statically
fullstaticbin = staticenv.Program('../fullstatic/build/lighttpd',

Loading…
Cancel
Save