Skip to content

Commit

Permalink
[scons] only apply FreeBSD11 workaround on FreeBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
stbuehler committed Oct 29, 2016
1 parent fbe3a84 commit ca074ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit ca074ba

Please sign in to comment.