summaryrefslogtreecommitdiff
path: root/package/lz4/patches/patch-programs_Makefile
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-06-30 08:12:09 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2014-06-30 08:12:09 +0200
commiteb3f81cc2f161f97954b9b93839a0225bc2bf83b (patch)
tree63b1e7028deddf2213e885391c847de5dbfe4409 /package/lz4/patches/patch-programs_Makefile
parentaa6259aed442339ba288d5a0e704eb22465c426e (diff)
move to libs/comp, add new package lz4
Diffstat (limited to 'package/lz4/patches/patch-programs_Makefile')
-rw-r--r--package/lz4/patches/patch-programs_Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/package/lz4/patches/patch-programs_Makefile b/package/lz4/patches/patch-programs_Makefile
new file mode 100644
index 000000000..81d7e6470
--- /dev/null
+++ b/package/lz4/patches/patch-programs_Makefile
@@ -0,0 +1,26 @@
+--- lz4-r118.orig/programs/Makefile 2014-06-26 11:36:13.000000000 +0200
++++ lz4-r118/programs/Makefile 2014-06-30 08:09:52.000000000 +0200
+@@ -33,8 +33,8 @@
+ RELEASE=r118
+ DESTDIR=
+ PREFIX=/usr
+-CC:=$(CC)
+-CFLAGS+= -std=c99 -O3 -Wall -W -Wundef -DLZ4_VERSION=\"$(RELEASE)\"
++CC?=$(CC)
++CFLAGS+= -std=c99 -Wall -W -Wundef -DLZ4_VERSION=\"$(RELEASE)\"
+ FLAGS= -I.. $(CFLAGS)
+
+ BINDIR=$(PREFIX)/bin
+@@ -67,10 +67,10 @@ endif
+
+ default: lz4 lz4c
+
+-all: lz4 lz4c lz4c32 fullbench fullbench32 fuzzer fuzzer32 datagen
++all: lz4 lz4c
+
+ lz4: $(LZ4DIR)/lz4.c $(LZ4DIR)/lz4hc.c bench.c xxhash.c lz4io.c lz4cli.c
+- $(CC) $(FLAGS) -DDISABLE_LZ4C_LEGACY_OPTIONS $^ -o $@$(EXT)
++ $(CC) $(FLAGS) $^ -o $@$(EXT)
+
+ lz4c : $(LZ4DIR)/lz4.c $(LZ4DIR)/lz4hc.c bench.c xxhash.c lz4io.c lz4cli.c
+ $(CC) $(FLAGS) $^ -o $@$(EXT)