diff options
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)!" \ |