git: fb2179e94089 - main - databases/mongodb50: optionally support pre-AVX CPUs
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 03 Jan 2023 12:05:32 UTC
The branch main has been updated by ronald:
URL: https://cgit.FreeBSD.org/ports/commit/?id=fb2179e9408960e3715e49ef32cf1b71aed191f9
commit fb2179e9408960e3715e49ef32cf1b71aed191f9
Author: Borja Marcos <borjam@sarenet.es>
AuthorDate: 2023-01-01 12:22:15 +0000
Commit: Ronald Klop <ronald@FreeBSD.org>
CommitDate: 2023-01-03 12:05:18 +0000
databases/mongodb50: optionally support pre-AVX CPUs
Upstream defaults to Sandybridge+ CPUs for amd64.
It is reported to still work with older CPUs.
No revision bump as the change does not impact the default build.
PR: 268510
Approved by: rene (mentor)
Differential Revision: https://reviews.freebsd.org/D37924
---
databases/mongodb50/Makefile | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/databases/mongodb50/Makefile b/databases/mongodb50/Makefile
index 01bba62b1373..bc879bafc428 100644
--- a/databases/mongodb50/Makefile
+++ b/databases/mongodb50/Makefile
@@ -43,10 +43,10 @@ MAKE_ARGS= --cxx-std=17 \
--libc++ \
--runtime-hardening=on \
--use-system-boost \
+ --use-system-libunwind \
--use-system-pcre \
--use-system-snappy \
--use-system-stemmer \
- --use-system-libunwind \
--use-system-yaml \
--use-system-zlib \
--use-system-zstd \
@@ -59,11 +59,15 @@ CONFLICTS_INSTALL= mongodb[0-9][0-9] # etc/mongodb.conf.sample
USERS= mongodb
GROUPS= mongodb
-OPTIONS_DEFINE= LTO SASL SSL
-OPTIONS_DEFAULT= LTO SASL SSL
+OPTIONS_DEFINE= LTO SASL SSL NOAVX
+OPTIONS_DEFAULT= LTO SASL SSL
+
+NOAVX_DESC= "Disable AVX instructions on amd64 (Sandybridge+)"
LTO_MAKE_ARGS= --lto=on
+NOAVX_MAKE_ARGS= --experimental-optimization="-sandybridge"
+
SASL_LIB_DEPENDS= libsasl2.so:security/cyrus-sasl2
SASL_MAKE_ARGS= --use-sasl-client