[scons] only apply FreeBSD11 workaround on FreeBSD

personal/stbuehler/mod-csrf
Stefan Bühler 6 years ago
parent fbe3a84907
commit ca074babb1
  1. 3
      src/SConscript

@ -40,7 +40,8 @@ def WorkaroundFreeBSDLibOrder(libs):
# which "on purpose" might conflict with those in libc
# => link libc first solves this
# (required for FreeBSD11 fullstatic build)
if 'c' in libs:
import platform
if ('c' in libs) and (platform.system() == 'FreeBSD'):
return ['c'] + libs
return libs

Loading…
Cancel
Save