summaryrefslogtreecommitdiff
path: root/databases/mongodb80/files/extrapatch-SConstruct
diff options
context:
space:
mode:
authorRonald Klop <ronald@FreeBSD.org>2024-07-23 17:44:45 +0200
committerRonald Klop <ronald@FreeBSD.org>2024-07-23 17:44:45 +0200
commitf2c9ba7c53c9a599c36b722305a189fd912db5d2 (patch)
treeaccade01ff4ca28522f8702d4a8864689c862da1 /databases/mongodb80/files/extrapatch-SConstruct
parentsysutils/cfengine*-lts: cfengine* 3.24.0 is LTS (diff)
databases/mongodb80: new port 8.0.0-rc14
Still release candidate, use with care. Notes: https://www.mongodb.com/docs/v8.0/release-notes/8.0/
Diffstat (limited to 'databases/mongodb80/files/extrapatch-SConstruct')
-rw-r--r--databases/mongodb80/files/extrapatch-SConstruct16
1 files changed, 16 insertions, 0 deletions
diff --git a/databases/mongodb80/files/extrapatch-SConstruct b/databases/mongodb80/files/extrapatch-SConstruct
new file mode 100644
index 000000000000..05946bd82cdc
--- /dev/null
+++ b/databases/mongodb80/files/extrapatch-SConstruct
@@ -0,0 +1,16 @@
+--- SConstruct.orig 2023-06-07 17:07:38 UTC
++++ SConstruct
+@@ -3217,8 +3205,12 @@ if not env.TargetOSIs('windows', 'macOS') and (env.Too
+ # 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"},