diff options
author | Borja Marcos <borjam@sarenet.es> | 2023-01-01 12:22:15 +0000 |
---|---|---|
committer | Ronald Klop <ronald@FreeBSD.org> | 2023-01-03 12:05:18 +0000 |
commit | fb2179e9408960e3715e49ef32cf1b71aed191f9 (patch) | |
tree | 39f3f3dbb4ad9505e4c84ba288ff98ef4f80fbb3 | |
parent | 5d942c73f0982cf8b7ef95812006b83add1bdc8d (diff) |
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
-rw-r--r-- | databases/mongodb50/Makefile | 10 |
1 files 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 |