summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szuba <marecki@gentoo.org>2020-04-27 19:14:44 +0100
committerMarek Szuba <marecki@gentoo.org>2020-04-27 19:14:44 +0100
commitde7498be6ad5068ab6499172edb01a58345e73e7 (patch)
tree4d8d59bad2acdc74771b42fbbccec7bee0a94c2e /sys-apps/flashrom
parentmedia-libs/libsndfile: mark 1.0.29_pre2_p20191024 hppa, bug #631674 (diff)
downloadgentoo-de7498be6ad5068ab6499172edb01a58345e73e7.tar.gz
gentoo-de7498be6ad5068ab6499172edb01a58345e73e7.tar.bz2
gentoo-de7498be6ad5068ab6499172edb01a58345e73e7.zip
sys-apps/flashrom: append -fPIC to compiler flags
libflashrom.a is useless without this. Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'sys-apps/flashrom')
-rw-r--r--sys-apps/flashrom/flashrom-1.2-r1.ebuild (renamed from sys-apps/flashrom/flashrom-1.2.ebuild)10
1 files changed, 9 insertions, 1 deletions
diff --git a/sys-apps/flashrom/flashrom-1.2.ebuild b/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 $(