diff options
| author | Nikolai Lifanov <lifanov@FreeBSD.org> | 2018-01-01 16:45:00 +0000 |
|---|---|---|
| committer | Nikolai Lifanov <lifanov@FreeBSD.org> | 2018-01-01 16:45:00 +0000 |
| commit | 0cface41e2f360609703c1986682086b9f6821cc (patch) | |
| tree | 45441825946fc320c006f87d5128f16310a9a55d /databases/mongodb36/files/patch-SConstruct | |
| parent | - Update to 17.1.20171218 (diff) | |
add new port: MongoDB 3.6.0
PR: 224303
Submitted by: dev@dudu.ro
Differential Revision: https://reviews.freebsd.org/D13594
Diffstat (limited to 'databases/mongodb36/files/patch-SConstruct')
| -rw-r--r-- | databases/mongodb36/files/patch-SConstruct | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/databases/mongodb36/files/patch-SConstruct b/databases/mongodb36/files/patch-SConstruct new file mode 100644 index 000000000000..27c8229c74f4 --- /dev/null +++ b/databases/mongodb36/files/patch-SConstruct @@ -0,0 +1,48 @@ +--- SConstruct.orig 2017-12-01 17:04:06 UTC ++++ SConstruct +@@ -922,9 +922,9 @@ if has_option('variables-help'): + print(env_vars.GenerateHelpText(env)) + Exit(0) + +-unknown_vars = env_vars.UnknownVariables() +-if unknown_vars: +- env.FatalError("Unknown variables specified: {0}", ", ".join(unknown_vars.keys())) ++#unknown_vars = env_vars.UnknownVariables() ++#if unknown_vars: ++# env.FatalError("Unknown variables specified: {0}", ", ".join(unknown_vars.keys())) + + def set_config_header_define(env, varname, varval = 1): + env['CONFIG_HEADER_DEFINES'][varname] = varval +@@ -1612,7 +1612,7 @@ if env.TargetOSIs('posix'): + # If runtime hardening is requested, then build anything + # destined for an executable with the necessary flags for PIE. + env.AppendUnique( +- PROGCCFLAGS=['-fPIE'], ++ PROGCCFLAGS=['-fpic'], + PROGLINKFLAGS=['-pie'], + ) + +@@ -1626,7 +1626,7 @@ if env.TargetOSIs('posix'): + "-Wno-unknown-pragmas", + "-Winvalid-pch"] ) + # env.Append( " -Wconversion" ) TODO: this doesn't really work yet +- if env.TargetOSIs('linux', 'darwin', 'solaris'): ++ if env.TargetOSIs('linux', 'darwin', 'solaris', 'freebsd'): + if not has_option("disable-warnings-as-errors"): + env.Append( CCFLAGS=["-Werror"] ) + +@@ -1661,10 +1661,10 @@ if env.TargetOSIs('posix'): + env.Append( CCFLAGS=["-fprofile-arcs", "-ftest-coverage"] ) + env.Append( LINKFLAGS=["-fprofile-arcs", "-ftest-coverage"] ) + +- if optBuild: +- env.Append( CCFLAGS=["-O2"] ) +- else: +- env.Append( CCFLAGS=["-O0"] ) ++ #if optBuild: ++ # env.Append( CCFLAGS=["-O2"] ) ++ #else: ++ # env.Append( CCFLAGS=["-O0"] ) + + # Promote linker warnings into errors. We can't yet do this on OS X because its linker considers + # noall_load obsolete and warns about it. |
