From de7498be6ad5068ab6499172edb01a58345e73e7 Mon Sep 17 00:00:00 2001 From: Marek Szuba Date: Mon, 27 Apr 2020 19:14:44 +0100 Subject: [PATCH] sys-apps/flashrom: append -fPIC to compiler flags libflashrom.a is useless without this. Signed-off-by: Marek Szuba --- .../{flashrom-1.2.ebuild => flashrom-1.2-r1.ebuild} | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) rename sys-apps/flashrom/{flashrom-1.2.ebuild => flashrom-1.2-r1.ebuild} (97%) 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 b51635e3ad80..e732f06f2972 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 $( -- 2.26.2