summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-util')
-rw-r--r--dev-util/elfkickers/elfkickers-3.1a.ebuild1
-rw-r--r--dev-util/elfkickers/files/elfkickers-3.1-CC.patch12
2 files changed, 13 insertions, 0 deletions
diff --git a/dev-util/elfkickers/elfkickers-3.1a.ebuild b/dev-util/elfkickers/elfkickers-3.1a.ebuild
index 170b7cae199e..17da43f9da49 100644
--- a/dev-util/elfkickers/elfkickers-3.1a.ebuild
+++ b/dev-util/elfkickers/elfkickers-3.1a.ebuild
@@ -25,6 +25,7 @@ PATCHES=(
"${FILESDIR}"/${PN}-3.1-create-destdir-path.patch
"${FILESDIR}"/add-freebsd-elf-defs.patch
"${FILESDIR}"/${PN}-3.1-AR.patch
+ "${FILESDIR}"/${PN}-3.1-CC.patch
)
src_prepare() {
diff --git a/dev-util/elfkickers/files/elfkickers-3.1-CC.patch b/dev-util/elfkickers/files/elfkickers-3.1-CC.patch
new file mode 100644
index 000000000000..b1541d5cb179
--- /dev/null
+++ b/dev-util/elfkickers/files/elfkickers-3.1-CC.patch
@@ -0,0 +1,12 @@
+https://bugs.gentoo.org/790611
+--- a/elftoc/Makefile
++++ b/elftoc/Makefile
+@@ -30,7 +30,7 @@ out.o : out.c out.h gen.h readelf.h pieces.h address.h shdrtab.h \
+ elftoc.o : elftoc.c gen.h readelf.h pieces.h address.h outbase.h out.h
+
+ elfnames.c: mknames
+- echo '#include <elf.h>' | gcc -E -dM -xc /dev/stdin | ./$^ $@
++ echo '#include <elf.h>' | $(CC) -E -dM -xc /dev/stdin | ./$^ $@
+
+ mknames: mknames.o
+ mknames.o: mknames.c