From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id AFF23138334 for ; Tue, 11 Sep 2018 07:25:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 9EF3FE0C35; Tue, 11 Sep 2018 07:25:38 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 70282E0C35 for ; Tue, 11 Sep 2018 07:25:38 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DD186335D4C for ; Tue, 11 Sep 2018 07:25:36 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0F13E3C1 for ; Tue, 11 Sep 2018 07:25:35 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1536650728.6f9553b8e4808e115ab38f1178c875fd8748a803.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/llvmlite/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/llvmlite/llvmlite-0.25.0_rc1.ebuild X-VCS-Directories: dev-python/llvmlite/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 6f9553b8e4808e115ab38f1178c875fd8748a803 X-VCS-Branch: master Date: Tue, 11 Sep 2018 07:25:35 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 36fd193f-ca1e-40a8-9ca4-ba67255f5825 X-Archives-Hash: 82ebef7c098fb588227c5d453a3ec35c commit: 6f9553b8e4808e115ab38f1178c875fd8748a803 Author: Michał Górny gentoo org> AuthorDate: Tue Sep 11 07:23:59 2018 +0000 Commit: Michał Górny gentoo org> CommitDate: Tue Sep 11 07:25:28 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f9553b8 dev-python/llvmlite: Use parallel make for shared library dev-python/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 c882b6bc864..64fcac01111 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 - <