summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuilherme Amadio <amadio@gentoo.org>2018-03-07 14:07:39 +0100
committerGuilherme Amadio <amadio@gentoo.org>2018-03-07 14:15:01 +0100
commit5344a12960e267c18b7d90163a99b1f4e1fb1527 (patch)
tree15eaf44b8662fa5c2a535a14f4fbe642892d88ec /dev-libs/xxhash/files
parentwww-apps/grafana-bin: Fix v5 install error (diff)
downloadgentoo-5344a12960e267c18b7d90163a99b1f4e1fb1527.tar.gz
gentoo-5344a12960e267c18b7d90163a99b1f4e1fb1527.tar.bz2
gentoo-5344a12960e267c18b7d90163a99b1f4e1fb1527.zip
dev-libs/xxhash: new package
Package-Manager: Portage-2.3.24, Repoman-2.3.6
Diffstat (limited to 'dev-libs/xxhash/files')
-rw-r--r--dev-libs/xxhash/files/xxhash-staticlib.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/dev-libs/xxhash/files/xxhash-staticlib.patch b/dev-libs/xxhash/files/xxhash-staticlib.patch
new file mode 100644
index 00000000000..b30ac93dbef
--- /dev/null
+++ b/dev-libs/xxhash/files/xxhash-staticlib.patch
@@ -0,0 +1,27 @@
+Only in xxHash-0.6.3.orig/cmake_unofficial: CMakeLists.txt
+diff -ru xxHash-0.6.3.orig/Makefile xxHash-0.6.3/Makefile
+--- xxHash-0.6.3.orig/Makefile 2017-12-18 10:47:41.740700013 +0100
++++ xxHash-0.6.3/Makefile 2017-12-18 11:14:05.157379597 +0100
+@@ -50,7 +50,7 @@
+ default: xxhsum
+
+ .PHONY: all
+-all: xxhsum xxhsum32 xxhsum_inlinedXXH
++all: xxhsum xxhsum32 xxhsum_inlinedXXH libxxhash.a
+
+ xxhsum32: CFLAGS += -m32
+ xxhsum xxhsum32: xxhash.c xxhsum.c
+@@ -58,6 +58,13 @@
+ ln -sf $@ xxh32sum
+ ln -sf $@ xxh64sum
+
++xxhash.o: CPPFLAGS += -DXXHASH_EXPORT
++xxhash.o: xxhash.c
++ $(CC) $(FLAGS) -c $^
++
++libxxhash.a: xxhash.o
++ $(AR) rcs $@ $^ $@
++
+ xxhsum_inlinedXXH: xxhsum.c
+ $(CC) $(FLAGS) -DXXH_PRIVATE_API $^ -o $@$(EXT)
+