freebsd-ports/databases/mongodb44/files/extrapatch-SConstruct
Ronald Klop 0464348da5
databases/mongodb44: make support for ARMv8.0-A optional
no-op commit; default is still enabled

Why? Upstream removed support for non-LSE ARM CPUs because of possible corruption on high concurrent load.
Quite some people (including me) use this on RPI4 with net-mgmt/unifi7 and one WiFi dish. This is not a 'high concurrent load' and works fine.
By making this CPU optional I hope to support both types of usage.
2023-07-30 22:57:08 +02:00

11 lines
580 B
Text

--- SConstruct.orig 2023-05-10 02:21:42 UTC
+++ SConstruct
@@ -2297,7 +2297,7 @@ if env.ToolchainIs('GCC', 'clang'):
elif env['TARGET_ARCH'] == 'aarch64':
# If we are using GCC or clang to target aarch64, set the arch to be armv8.2-a,
# This is to prevent a bug with WT see SERVER-71772 for more details
- env.Append( CCFLAGS=['-march=armv8.2-a', '-mtune=generic'] )
+ env.Append( CCFLAGS=['-march=armv8-a+crc', '-mtune=generic'] )
# Needed for auth tests since key files are stored in git with mode 644.
if not env.TargetOSIs('windows'):