diff options
author | Fabian Groffen <grobian@gentoo.org> | 2020-12-31 14:18:15 +0100 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2020-12-31 14:18:15 +0100 |
commit | bf5054335d2cd1533fe6481a2007e275719c6846 (patch) | |
tree | 46ac0198cc06f200335a28eac3675dc734b2ffba /dev-db | |
parent | sys-devel/binutils-apple-8.2.1-r101: bump for tapilite (diff) | |
download | gentoo-bf5054335d2cd1533fe6481a2007e275719c6846.tar.gz gentoo-bf5054335d2cd1533fe6481a2007e275719c6846.tar.bz2 gentoo-bf5054335d2cd1533fe6481a2007e275719c6846.zip |
dev-db/lmdb-0.9.27: fix segfault due to miscompilation on macOS
Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'dev-db')
-rw-r--r-- | dev-db/lmdb/lmdb-0.9.27.ebuild | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dev-db/lmdb/lmdb-0.9.27.ebuild b/dev-db/lmdb/lmdb-0.9.27.ebuild index 0a352a7842f9..a16119674e94 100644 --- a/dev-db/lmdb/lmdb-0.9.27.ebuild +++ b/dev-db/lmdb/lmdb-0.9.27.ebuild @@ -32,8 +32,10 @@ src_prepare() { multilib_src_configure() { local soname="-Wl,-soname,liblmdb$(get_libname 0)" - [[ ${CHOST} == *-darwin* ]] && \ + if [[ ${CHOST} == *-darwin* ]] ; then soname="-dynamiclib -install_name ${EPREFIX}/usr/$(get_libdir)/liblmdb$(get_libname 0)" + replace-flags -O[123456789] -O1 + fi sed -i -e "s!^CC.*!CC = $(tc-getCC)!" \ -e "s!^CFLAGS.*!CFLAGS = ${CFLAGS}!" \ -e "s!^AR.*!AR = $(tc-getAR)!" \ |