Revert "dev-libs/xxhash: Compile xxhash.c just once, really"
authorGuilherme Amadio <amadio@gentoo.org>
Mon, 17 Sep 2018 09:40:25 +0000 (11:40 +0200)
committerGuilherme Amadio <amadio@gentoo.org>
Mon, 17 Sep 2018 09:40:25 +0000 (11:40 +0200)
This reverts commit 173c62837c28971e2c0c3bbc038ec16fe4930b38.

dev-libs/xxhash/files/xxhash-0.6.5-compile-xxhash.o-once.patch [deleted file]
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-compile-xxhash.o-once.patch b/dev-libs/xxhash/files/xxhash-0.6.5-compile-xxhash.o-once.patch
deleted file mode 100644 (file)
index 2eb7f8c..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
---- 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
-@@ -105,12 +105,12 @@
- ifeq (,$(filter Windows%,$(OS)))
- $(LIBXXH): LDFLAGS += -fPIC
- endif
--$(LIBXXH): xxhash.c
-+$(LIBXXH): xxhash.o
-       @echo compiling dynamic library $(LIBVER)
--      @$(CC) $(FLAGS) $^ $(LDFLAGS) $(SONAME_FLAGS) -o $@
-+      $(CC) $(FLAGS) $^ $(LDFLAGS) $(SONAME_FLAGS) -o $@
-       @echo creating versioned links
--      @ln -sf $@ libxxhash.$(SHARED_EXT_MAJOR)
--      @ln -sf $@ libxxhash.$(SHARED_EXT)
-+      ln -sf $@ libxxhash.$(SHARED_EXT_MAJOR)
-+      ln -sf $@ libxxhash.$(SHARED_EXT)
- libxxhash : $(LIBXXH)
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 f01881f5cb1062e332dcc2d6b6714088d44284bd..18a037770e5418f60c710a7b3832316a5fc9a802 100644 (file)
@@ -15,7 +15,7 @@ IUSE="static-libs"
 
 S="${WORKDIR}/xxHash-${PV}"
 PATCHES=(
-       "${FILESDIR}"/${PN}-0.6.5-compile-xxhash.o-once.patch
+       "${FILESDIR}"/${PN}-0.6.5-do-not-compile-xxhash.o-twice.patch
 )
 
 src_compile() {