Permalink
Browse files

Set linker flags for GNU ld on FreeBSD 9

  • Loading branch information...
1 parent bd1e31f commit 3509a34e11f43e7556d1be41d389b2e23982ab2d Dan Crosta committed May 16, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 SConstruct
View
@@ -311,6 +311,8 @@ libdeps.setup_environment( env )
if env['PYSYSPLATFORM'] == 'linux3':
env['PYSYSPLATFORM'] = 'linux2'
+if env['PYSYSPLATFORM'] in ('freebsd9', ):
+ env['PYSYSPLATFORM'] = 'freebsd'
if os.sys.platform == 'win32':
env['OS_FAMILY'] = 'win'
@@ -327,7 +329,7 @@ elif has_option("clang"):
if has_option( "cc" ):
env["CC"] = get_option( "cc" )
-if env['PYSYSPLATFORM'] == 'linux2':
+if env['PYSYSPLATFORM'] in ('linux2', 'freebsd'):
env['LINK_LIBGROUP_START'] = '-Wl,--start-group'
env['LINK_LIBGROUP_END'] = '-Wl,--end-group'
env['RELOBJ_LIBDEPS_START'] = '--whole-archive'

0 comments on commit 3509a34

Please sign in to comment.