diff --git a/dev-libs/memkind/files/memkind-respect-ar.patch b/dev-libs/memkind/files/memkind-respect-ar.patch new file mode 100644 index 0000000000..0318e2d8d8 --- /dev/null +++ b/dev-libs/memkind/files/memkind-respect-ar.patch @@ -0,0 +1,11 @@ +--- a/Makefile.am ++++ b/Makefile.am +@@ -518,7 +518,7 @@ + endef + + static_lib: libmemkind.la +- bash -c "ar -M < <(echo -e '$(ar_prog)')" ++ bash -c "${AR} -M < <(echo -e '$(ar_prog)')" + cp libmemkind.a .libs/ + rm libmemkind.a + diff --git a/dev-libs/memkind/memkind-1.11.0-r1.ebuild b/dev-libs/memkind/memkind-1.11.0-r1.ebuild index d5aea5c961..a3e239b543 100644 --- a/dev-libs/memkind/memkind-1.11.0-r1.ebuild +++ b/dev-libs/memkind/memkind-1.11.0-r1.ebuild @@ -5,7 +5,7 @@ EAPI=8 PYTHON_COMPAT=( python3_{8..10} pypy3 ) -inherit autotools linux-info python-any-r1 +inherit autotools linux-info python-any-r1 toolchain-funcs DESCRIPTION="user extensible heap manager built on top of jemalloc" HOMEPAGE="https://memkind.github.io/memkind" @@ -25,6 +25,7 @@ DEPEND=" ${PYTHON_DEPS} " +PATCHES=( "${FILESDIR}/${PN}-respect-ar.patch" ) RESTRICT="test" # ERROR: ./test/test.sh requires a NUMA enabled system with more than one node. #RESTRICT="!test? ( test )" @@ -35,6 +36,7 @@ src_prepare() { } src_configure() { + tc-export AR local myconf=( --disable-silent-rules --enable-shared