From 6f9553b8e4808e115ab38f1178c875fd8748a803 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Tue, 11 Sep 2018 09:23:59 +0200 Subject: [PATCH] dev-python/llvmlite: Use parallel make for shared library --- .../llvmlite/llvmlite-0.25.0_rc1.ebuild | 21 ++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/dev-python/llvmlite/llvmlite-0.25.0_rc1.ebuild b/dev-python/llvmlite/llvmlite-0.25.0_rc1.ebuild index c882b6bc8644..64fcac011116 100644 --- a/dev-python/llvmlite/llvmlite-0.25.0_rc1.ebuild +++ b/dev-python/llvmlite/llvmlite-0.25.0_rc1.ebuild @@ -34,13 +34,20 @@ PATCHES=( "${FILESDIR}"/llvmlite-0.15.0-use-system-six.patch ) -python_prepare_all() { - # disable -flto, we do not force it against user's wishes - # add -fPIC, needed to link against shared libraries - # plus use those vars to force our CXXFLAGS/LDFLAGS in... - export CXX_FLTO_FLAGS="${CXXFLAGS} -fPIC" - export LD_FLTO_FLAGS="${LDFLAGS} -fPIC" - distutils-r1_python_prepare_all +python_configure_all() { + # upstream's build system is just horrible, and they ignored the PR + # fixing it, so let's build the shared lib properly using implicit + # make rules + + export LDLIBS=$(llvm-config --libs all) + export CXXFLAGS="$(llvm-config --cxxflags) -fPIC ${CXXFLAGS}" + export LDFLAGS="$(llvm-config --ldflags) ${LDFLAGS}" + + local files=( ffi/*.cpp ) + emake -f - <