mirror of
https://git.freebsd.org/ports.git
synced 2025-05-01 02:56:39 -04:00
Changes: https://www.mongodb.com/docs/v7.0/release-notes/7.0/ * version bump * new option ARMV80A to support older ARM cpus like Raspberry Pi 4 * pet portclippy and portfmt * poudriere stage-qa: ok As upstream has stopped supporting non-LSE ARM cpus I'm adapting the port also. The option ARMV80A is for backwards compatibility, but use at your own risk. See pkg-message for more info.
16 lines
737 B
Text
16 lines
737 B
Text
--- 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"},
|