mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-28 09:01:55 +02:00
dev-util/patchelf: Sync with Gentoo
It's from Gentoo commit 3baf1a6f70fba59102f8e1eeb46cb8291e4b9a8a.
This commit is contained in:
parent
a45750d89b
commit
658b5f45c9
@ -0,0 +1,9 @@
|
|||||||
|
Add define for DT_MIPS_XHASH (MIPS gnu hash support) using system elf.h header.
|
||||||
|
Bug: https://bugs.gentoo.org/860888
|
||||||
|
--- /dev/null
|
||||||
|
+++ b/src/elf.h
|
||||||
|
@@ -0,0 +1,4 @@
|
||||||
|
+#include_next <elf.h>
|
||||||
|
+#ifndef DT_MIPS_XHASH
|
||||||
|
+#define DT_MIPS_XHASH 0x70000036
|
||||||
|
+#endif
|
@ -12,9 +12,13 @@ SLOT="0"
|
|||||||
KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~riscv-linux ~x86-linux"
|
KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~riscv-linux ~x86-linux"
|
||||||
LICENSE="GPL-3"
|
LICENSE="GPL-3"
|
||||||
|
|
||||||
|
PATCHES=(
|
||||||
|
"${FILESDIR}"/${PN}-glibc-dt-mips-xhash.patch
|
||||||
|
)
|
||||||
|
|
||||||
src_prepare() {
|
src_prepare() {
|
||||||
default
|
|
||||||
rm src/elf.h || die
|
rm src/elf.h || die
|
||||||
|
default
|
||||||
|
|
||||||
sed -i \
|
sed -i \
|
||||||
-e 's:-Werror::g' \
|
-e 's:-Werror::g' \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user