summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-util/elfkickers')
-rw-r--r--dev-util/elfkickers/elfkickers-3.1a.ebuild10
-rw-r--r--dev-util/elfkickers/files/elfkickers-3.1-AR.patch23
2 files changed, 28 insertions, 5 deletions
diff --git a/dev-util/elfkickers/elfkickers-3.1a.ebuild b/dev-util/elfkickers/elfkickers-3.1a.ebuild
index cc49c477cb5b..769f64eccd24 100644
--- a/dev-util/elfkickers/elfkickers-3.1a.ebuild
+++ b/dev-util/elfkickers/elfkickers-3.1a.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -24,14 +24,14 @@ PATCHES=(
"${FILESDIR}"/${PN}-3.1-respect-CFLAGS-LDFLAGS.patch
"${FILESDIR}"/${PN}-3.1-create-destdir-path.patch
"${FILESDIR}"/add-freebsd-elf-defs.patch
+ "${FILESDIR}"/${PN}-3.1-AR.patch
)
src_prepare() {
default
+
+ tc-export AR CC
+
sed -i -e "s:^prefix = /usr/local:prefix = ${D}:" Makefile \
|| die "sed failed"
}
-
-src_compile() {
- emake CC=$(tc-getCC) all
-}
diff --git a/dev-util/elfkickers/files/elfkickers-3.1-AR.patch b/dev-util/elfkickers/files/elfkickers-3.1-AR.patch
new file mode 100644
index 000000000000..6b5100c06eee
--- /dev/null
+++ b/dev-util/elfkickers/files/elfkickers-3.1-AR.patch
@@ -0,0 +1,23 @@
+https://bugs.gentoo.org/724258
+--- a/ebfc/Makefile
++++ b/ebfc/Makefile
+@@ -10,7 +10,7 @@ brainfuck.o: brainfuck.c elfparts.h ebfc.h
+
+ libelfparts.a: elfparts.o ehdr.o phdrtab.o shdrtab.o progbits.o \
+ strtab.o symtab.o hash.o rel.o got.o dynamic.o
+- ar crs libelfparts.a $^
++ $(AR) crs libelfparts.a $^
+
+ elfparts.o: elfparts.c elfparts.h gen.h
+ ehdr.o: ehdr.c elfparts.h gen.h
+--- a/elfrw/Makefile
++++ b/elfrw/Makefile
+@@ -6,7 +6,7 @@ LIBOBJS = elfrw.o elfrw_dyn.o elfrw_ehdr.o elfrw_phdr.o elfrw_rel.o \
+ elfrw_shdr.o elfrw_sym.o elfrw_ver.o
+
+ libelfrw.a: $(LIBOBJS)
+- ar crs $@ $^
++ $(AR) crs $@ $^
+
+ elfrw.o: elfrw.c elfrw.h elfrw_int.h
+ elfrw_dyn.o: elfrw_dyn.c elfrw_int.h