Skip to content

Commit

Permalink
databases/mongodb50: turn off LTO
Browse files Browse the repository at this point in the history
After upgrading snappy 1.1.0 -> 1.2.0, mongodb50 fails to start:

ld-elf.so.1: /usr/local/bin/mongod: Undefined symbol "_ZN6snappy8CompressEPKcmPNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE"

Apparentally turning off LTO fixes this.

PR:	278254
  • Loading branch information
Ronald Klop authored and Ronald Klop committed Apr 8, 2024
1 parent bcc1ca8 commit 9220f0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion databases/mongodb50/Makefile
@@ -1,6 +1,7 @@
PORTNAME= mongodb
DISTVERSIONPREFIX= r
DISTVERSION= 5.0.26
PORTREVISION= 1
CATEGORIES= databases net
MASTER_SITES= https://fastdl.mongodb.org/src/ \
http://fastdl.mongodb.org/src/
Expand Down Expand Up @@ -62,7 +63,7 @@ USERS= mongodb
GROUPS= mongodb

OPTIONS_DEFINE= LTO SASL SSL NOAVX
OPTIONS_DEFAULT= LTO SASL SSL
OPTIONS_DEFAULT= SASL SSL

NOAVX_DESC= "Disable AVX instructions on amd64 (Sandybridge+)"

Expand Down

0 comments on commit 9220f0b

Please sign in to comment.