1 |
commit: de7498be6ad5068ab6499172edb01a58345e73e7 |
2 |
Author: Marek Szuba <marecki <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Apr 27 18:14:44 2020 +0000 |
4 |
Commit: Marek Szuba <marecki <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Apr 27 18:14:44 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de7498be |
7 |
|
8 |
sys-apps/flashrom: append -fPIC to compiler flags |
9 |
|
10 |
libflashrom.a is useless without this. |
11 |
|
12 |
Signed-off-by: Marek Szuba <marecki <AT> gentoo.org> |
13 |
|
14 |
.../flashrom/{flashrom-1.2.ebuild => flashrom-1.2-r1.ebuild} | 10 +++++++++- |
15 |
1 file changed, 9 insertions(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/sys-apps/flashrom/flashrom-1.2.ebuild b/sys-apps/flashrom/flashrom-1.2-r1.ebuild |
18 |
similarity index 97% |
19 |
rename from sys-apps/flashrom/flashrom-1.2.ebuild |
20 |
rename to sys-apps/flashrom/flashrom-1.2-r1.ebuild |
21 |
index b51635e3ad8..e732f06f297 100644 |
22 |
--- a/sys-apps/flashrom/flashrom-1.2.ebuild |
23 |
+++ b/sys-apps/flashrom/flashrom-1.2-r1.ebuild |
24 |
@@ -3,7 +3,8 @@ |
25 |
|
26 |
EAPI=7 |
27 |
|
28 |
-inherit toolchain-funcs |
29 |
+inherit flag-o-matic toolchain-funcs |
30 |
+ |
31 |
if [[ ${PV} == "9999" ]] ; then |
32 |
EGIT_REPO_URI="https://review.coreboot.org/flashrom.git" |
33 |
inherit git-r3 |
34 |
@@ -103,6 +104,13 @@ flashrom_enable() { |
35 |
for u ; do _flashrom_enable "${u}" ; done |
36 |
} |
37 |
|
38 |
+src_prepare() { |
39 |
+ # To make libflashrom.a actually useful |
40 |
+ append-flags -fPIC |
41 |
+ |
42 |
+ default |
43 |
+} |
44 |
+ |
45 |
src_compile() { |
46 |
# Help keep things in sync. |
47 |
local sprogs=$(echo $( |