summaryrefslogtreecommitdiff
path: root/databases/mongodb50/files/patch-SConstruct
diff options
context:
space:
mode:
authorKoichiro Iwao <meta@FreeBSD.org>2021-06-14 14:03:13 +0900
committerKoichiro Iwao <meta@FreeBSD.org>2021-06-14 14:06:56 +0900
commit58f4100c0c7d4a16b3806a3f1ec6bc76edfe6ffb (patch)
tree4a2752ac06930d157737b137b657d24a3b64221b /databases/mongodb50/files/patch-SConstruct
parentsecurity/softether-devel: fix distinfo corruption (diff)
databases/mongodb50: add port as repocopy of databases/mongodb49
PR: 255588 Reported by: Ronald Klop <ronald-lists@klop.ws> Sponsored by: HAW International
Diffstat (limited to 'databases/mongodb50/files/patch-SConstruct')
-rw-r--r--databases/mongodb50/files/patch-SConstruct38
1 files changed, 38 insertions, 0 deletions
diff --git a/databases/mongodb50/files/patch-SConstruct b/databases/mongodb50/files/patch-SConstruct
new file mode 100644
index 000000000000..3d7a6ad73feb
--- /dev/null
+++ b/databases/mongodb50/files/patch-SConstruct
@@ -0,0 +1,38 @@
+--- SConstruct.orig 2021-04-29 23:06:52 UTC
++++ SConstruct
+@@ -1324,9 +1324,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(list(unknown_vars.keys())))
++#unknown_vars = env_vars.UnknownVariables()
++#if unknown_vars:
++# env.FatalError("Unknown variables specified: {0}", ", ".join(list(unknown_vars.keys())))
+
+ if get_option('install-action') != 'default' and get_option('ninja') != "disabled":
+ env.FatalError("Cannot use non-default install actions when generating Ninja.")
+@@ -2498,7 +2498,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'],
+ )
+
+@@ -2675,8 +2675,12 @@ if not env.TargetOSIs('windows') and (env.ToolchainIs(
+ # setting it for both C and C++ by setting both of CFLAGS and
+ # CXXFLAGS.
+
++ arm_march_flag = "armv8-a"
++ if get_option('use-hardware-crc32') == "on":
++ arm_march_flag += "+crc"
++
+ default_targeting_flags_for_architecture = {
+- "aarch64" : { "-march=" : "armv8.2-a", "-mtune=" : "generic" },
++ "aarch64" : { "-march=" : arm_march_flag, "-mtune=" : "generic" },
+ "i386" : { "-march=" : "nocona", "-mtune=" : "generic" },
+ "ppc64le" : { "-mcpu=" : "power8", "-mtune=" : "power8", "-mcmodel=" : "medium" },
+ "s390x" : { "-march=" : "z196", "-mtune=" : "zEC12" },