commit: 01e24f2cd0d3bea9dab9c6047648941d677dbcb6
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 8 13:28:03 2018 +0000
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Sat Sep 8 13:28:25 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01e24f2c
dev-libs/xxhash: Compile xxhash.o once
Package-Manager: Portage-2.3.49, Repoman-2.3.10
.../files/xxhash-0.6.5-do-not-compile-xxhash.o-twice.patch | 11 +++++++++++
dev-libs/xxhash/xxhash-0.6.5.ebuild | 3 +++
2 files changed, 14 insertions(+)
diff --git
a/dev-libs/xxhash/files/xxhash-0.6.5-do-not-compile-xxhash.o-twice.patch
b/dev-libs/xxhash/files/xxhash-0.6.5-do-not-compile-xxhash.o-twice.patch
new file mode 100644
index 00000000000..dcbc8c32dec
--- /dev/null
+++ b/dev-libs/xxhash/files/xxhash-0.6.5-do-not-compile-xxhash.o-twice.patch
@@ -0,0 +1,11 @@
+--- a/Makefile
++++ b/Makefile
+@@ -82,7 +82,7 @@
+ all: lib xxhsum xxhsum_inlinedXXH
+
+ xxhsum32: CFLAGS += -m32
+-xxhsum xxhsum32: xxhash.c xxhsum.c
++xxhsum xxhsum32: xxhash.o xxhsum.c
+ $(CC) $(FLAGS) $^ -o $@$(EXT)
+
+ .PHONY: xxhsum_and_links
diff --git a/dev-libs/xxhash/xxhash-0.6.5.ebuild
b/dev-libs/xxhash/xxhash-0.6.5.ebuild
index f23c18c478a..f8633569a91 100644
--- a/dev-libs/xxhash/xxhash-0.6.5.ebuild
+++ b/dev-libs/xxhash/xxhash-0.6.5.ebuild
@@ -16,6 +16,9 @@ IUSE="static-libs"
DEPEND=""
S="${WORKDIR}/xxHash-${PV}"
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.6.5-do-not-compile-xxhash.o-twice.patch
+)
src_configure() {
use hppa && replace-flags '-O*' '-O0'