1 |
commit: 01e24f2cd0d3bea9dab9c6047648941d677dbcb6 |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Sep 8 13:28:03 2018 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Sep 8 13:28:25 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01e24f2c |
7 |
|
8 |
dev-libs/xxhash: Compile xxhash.o once |
9 |
|
10 |
Package-Manager: Portage-2.3.49, Repoman-2.3.10 |
11 |
|
12 |
.../files/xxhash-0.6.5-do-not-compile-xxhash.o-twice.patch | 11 +++++++++++ |
13 |
dev-libs/xxhash/xxhash-0.6.5.ebuild | 3 +++ |
14 |
2 files changed, 14 insertions(+) |
15 |
|
16 |
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 |
17 |
new file mode 100644 |
18 |
index 00000000000..dcbc8c32dec |
19 |
--- /dev/null |
20 |
+++ b/dev-libs/xxhash/files/xxhash-0.6.5-do-not-compile-xxhash.o-twice.patch |
21 |
@@ -0,0 +1,11 @@ |
22 |
+--- a/Makefile |
23 |
++++ b/Makefile |
24 |
+@@ -82,7 +82,7 @@ |
25 |
+ all: lib xxhsum xxhsum_inlinedXXH |
26 |
+ |
27 |
+ xxhsum32: CFLAGS += -m32 |
28 |
+-xxhsum xxhsum32: xxhash.c xxhsum.c |
29 |
++xxhsum xxhsum32: xxhash.o xxhsum.c |
30 |
+ $(CC) $(FLAGS) $^ -o $@$(EXT) |
31 |
+ |
32 |
+ .PHONY: xxhsum_and_links |
33 |
|
34 |
diff --git a/dev-libs/xxhash/xxhash-0.6.5.ebuild b/dev-libs/xxhash/xxhash-0.6.5.ebuild |
35 |
index f23c18c478a..f8633569a91 100644 |
36 |
--- a/dev-libs/xxhash/xxhash-0.6.5.ebuild |
37 |
+++ b/dev-libs/xxhash/xxhash-0.6.5.ebuild |
38 |
@@ -16,6 +16,9 @@ IUSE="static-libs" |
39 |
DEPEND="" |
40 |
|
41 |
S="${WORKDIR}/xxHash-${PV}" |
42 |
+PATCHES=( |
43 |
+ "${FILESDIR}"/${PN}-0.6.5-do-not-compile-xxhash.o-twice.patch |
44 |
+) |
45 |
|
46 |
src_configure() { |
47 |
use hppa && replace-flags '-O*' '-O0' |