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 6714B138350 for ; Mon, 27 Apr 2020 18:15:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 960B9E088F; Mon, 27 Apr 2020 18:15:35 +0000 (UTC) Received: from smtp.gentoo.org (mail.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 828F1E088F for ; Mon, 27 Apr 2020 18:15:35 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 5F51634FC0E for ; Mon, 27 Apr 2020 18:15:34 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D4FFC1E4 for ; Mon, 27 Apr 2020 18:15:31 +0000 (UTC) From: "Marek Szuba" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Marek Szuba" Message-ID: <1588011284.de7498be6ad5068ab6499172edb01a58345e73e7.marecki@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/flashrom/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/flashrom/flashrom-1.2-r1.ebuild sys-apps/flashrom/flashrom-1.2.ebuild X-VCS-Directories: sys-apps/flashrom/ X-VCS-Committer: marecki X-VCS-Committer-Name: Marek Szuba X-VCS-Revision: de7498be6ad5068ab6499172edb01a58345e73e7 X-VCS-Branch: master Date: Mon, 27 Apr 2020 18:15:31 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: be8456bf-207d-4d7d-8372-14024da6e120 X-Archives-Hash: 696a02e861a7c30d645f27ec82a04c3e commit: de7498be6ad5068ab6499172edb01a58345e73e7 Author: Marek Szuba gentoo org> AuthorDate: Mon Apr 27 18:14:44 2020 +0000 Commit: Marek Szuba gentoo org> CommitDate: Mon Apr 27 18:14:44 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de7498be sys-apps/flashrom: append -fPIC to compiler flags libflashrom.a is useless without this. Signed-off-by: Marek Szuba gentoo.org> .../flashrom/{flashrom-1.2.ebuild => flashrom-1.2-r1.ebuild} | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/sys-apps/flashrom/flashrom-1.2.ebuild b/sys-apps/flashrom/flashrom-1.2-r1.ebuild similarity index 97% rename from sys-apps/flashrom/flashrom-1.2.ebuild rename to sys-apps/flashrom/flashrom-1.2-r1.ebuild index b51635e3ad8..e732f06f297 100644 --- a/sys-apps/flashrom/flashrom-1.2.ebuild +++ b/sys-apps/flashrom/flashrom-1.2-r1.ebuild @@ -3,7 +3,8 @@ EAPI=7 -inherit toolchain-funcs +inherit flag-o-matic toolchain-funcs + if [[ ${PV} == "9999" ]] ; then EGIT_REPO_URI="https://review.coreboot.org/flashrom.git" inherit git-r3 @@ -103,6 +104,13 @@ flashrom_enable() { for u ; do _flashrom_enable "${u}" ; done } +src_prepare() { + # To make libflashrom.a actually useful + append-flags -fPIC + + default +} + src_compile() { # Help keep things in sync. local sprogs=$(echo $(