dev-libs/xxhash: Compile xxhash.o once
authorJeroen Roovers <jer@gentoo.org>
Sat, 8 Sep 2018 13:28:03 +0000 (15:28 +0200)
committerJeroen Roovers <jer@gentoo.org>
Sat, 8 Sep 2018 13:28:25 +0000 (15:28 +0200)
Package-Manager: Portage-2.3.49, Repoman-2.3.10

dev-libs/xxhash/files/xxhash-0.6.5-do-not-compile-xxhash.o-twice.patch [new file with mode: 0644]
dev-libs/xxhash/xxhash-0.6.5.ebuild

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 (file)
index 0000000..dcbc8c3
--- /dev/null
@@ -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
index f23c18c478a8d816ee2216d6d7b7b04c6cbbc17c..f8633569a91b8d0756e2ad5ba3e7af9554c4ccb9 100644 (file)
@@ -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'