From: Michał Górny Date: Tue, 11 Sep 2018 07:23:59 +0000 (+0200) Subject: dev-python/llvmlite: Use parallel make for shared library X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=6f9553b8e4808e115ab38f1178c875fd8748a803;p=gentoo.git dev-python/llvmlite: Use parallel make for shared library --- 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 - <