diff options
author | Fabian Groffen <grobian@gentoo.org> | 2019-01-08 11:52:39 +0100 |
---|---|---|
committer | Fabian Groffen <grobian@gentoo.org> | 2019-01-08 14:45:09 +0100 |
commit | 7e6c14e7436d5ab2a1c5ebdab28739200347b36c (patch) | |
tree | a9444ecc2ab2bb5c2696c63712871f378eeb292c /dev-db | |
parent | kde-plasma: Add KDE Plasma 5.14.5 (diff) | |
download | gentoo-7e6c14e7436d5ab2a1c5ebdab28739200347b36c.tar.gz gentoo-7e6c14e7436d5ab2a1c5ebdab28739200347b36c.tar.bz2 gentoo-7e6c14e7436d5ab2a1c5ebdab28739200347b36c.zip |
dev-db/lmdb: fix build on <=darwin9, remove upstreamed Solaris fix
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11
Diffstat (limited to 'dev-db')
-rw-r--r-- | dev-db/lmdb/lmdb-0.9.22.ebuild | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/dev-db/lmdb/lmdb-0.9.22.ebuild b/dev-db/lmdb/lmdb-0.9.22.ebuild index 3219ba9b0b51..9e4e027f8378 100644 --- a/dev-db/lmdb/lmdb-0.9.22.ebuild +++ b/dev-db/lmdb/lmdb-0.9.22.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Authors +# Copyright 1999-2019 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -21,6 +21,11 @@ S="${WORKDIR}/${PN}-LMDB_${PV}/libraries/liblmdb" src_prepare() { eapply_user + if [[ ${CHOST} == *-darwin* && ${CHOST#*-darwin} -lt 10 ]] ; then + # posix_memalign isn't available before 10.6, but on OSX + # malloc is always aligned for any addressable type + sed -i -e '/(__APPLE__)/a#define HAVE_MEMALIGN 1\n#define memalign(X,Y) malloc(X)' mdb.c || die + fi multilib_copy_sources } @@ -38,8 +43,6 @@ multilib_src_configure() { "Makefile" || die if [[ ${CHOST} == *-solaris* ]] ; then - # ensure sigwait has a second sig argument - append-cppflags -D_POSIX_PTHREAD_SEMANTICS # fdatasync lives in -lrt on Solaris 10 [[ ${CHOST#*-solaris2.} -le 10 ]] && append-ldflags -lrt fi |