From: Marek Szuba Date: Mon, 27 Apr 2020 18:14:44 +0000 (+0100) Subject: sys-apps/flashrom: append -fPIC to compiler flags X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=de7498be6ad5068ab6499172edb01a58345e73e7;p=gentoo.git sys-apps/flashrom: append -fPIC to compiler flags libflashrom.a is useless without this. Signed-off-by: Marek Szuba --- 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 $(