diff options
author | Dan Crosta <dcrosta@10gen.com> | 2012-05-16 09:15:29 -0400 |
---|---|---|
committer | Dan Crosta <dcrosta@10gen.com> | 2012-05-16 09:15:49 -0400 |
commit | 3509a34e11f43e7556d1be41d389b2e23982ab2d (patch) | |
tree | 0d18ac065d5277c30d942bc96ef5e7a88cdb7fd0 /SConstruct | |
parent | bd1e31f9b56e8761d0b608095a635b65e820950e (diff) | |
download | mongo-3509a34e11f43e7556d1be41d389b2e23982ab2d.tar.gz |
Set linker flags for GNU ld on FreeBSD 9
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/SConstruct b/SConstruct index fd4f57a52b5..b349f4e4166 100644 --- a/SConstruct +++ b/SConstruct @@ -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' |