2014-11-28 20:13:39 +01:00
|
|
|
From: Jan Engelhardt <jengelh@inai.de>
|
|
|
|
Date: 2014-10-01 14:23:22.000000000 +0200
|
2016-04-03 01:56:32 +02:00
|
|
|
References: https://github.com/Cyan4973/lz4/pull/195
|
2014-11-28 20:13:39 +01:00
|
|
|
|
2016-04-02 21:30:27 +02:00
|
|
|
build: make programs use liblz too instead of duplicating object code.
|
2014-11-28 20:13:39 +01:00
|
|
|
|
2014-07-16 16:42:40 +02:00
|
|
|
---
|
2017-08-25 16:19:22 +02:00
|
|
|
programs/Makefile | 6 +++---
|
|
|
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
2014-07-16 16:42:40 +02:00
|
|
|
|
2017-08-25 16:19:22 +02:00
|
|
|
Index: lz4-1.8.0/programs/Makefile
|
2014-07-16 16:42:40 +02:00
|
|
|
===================================================================
|
2017-08-25 16:19:22 +02:00
|
|
|
--- lz4-1.8.0.orig/programs/Makefile
|
|
|
|
+++ lz4-1.8.0/programs/Makefile
|
|
|
|
@@ -41,7 +41,7 @@ LIBVER_MINOR := $(shell echo $(LIBVER_MI
|
|
|
|
LIBVER_PATCH := $(shell echo $(LIBVER_PATCH_SCRIPT))
|
|
|
|
LIBVER := $(shell echo $(LIBVER_SCRIPT))
|
2014-07-16 16:42:40 +02:00
|
|
|
|
2017-07-06 01:54:59 +02:00
|
|
|
-SRCFILES := $(wildcard $(LZ4DIR)/*.c) $(wildcard *.c)
|
|
|
|
+SRCFILES := $(wildcard *.c)
|
|
|
|
OBJFILES := $(patsubst %.c,%.o,$(SRCFILES))
|
2014-07-16 16:42:40 +02:00
|
|
|
|
2017-08-25 16:19:22 +02:00
|
|
|
CPPFLAGS += -I$(LZ4DIR) -DXXH_NAMESPACE=LZ4_
|
|
|
|
@@ -76,14 +76,14 @@ all32: CFLAGS+=-m32
|
2017-07-06 01:54:59 +02:00
|
|
|
all32: all
|
2014-07-16 16:42:40 +02:00
|
|
|
|
2017-08-25 16:19:22 +02:00
|
|
|
lz4: $(OBJFILES)
|
2017-07-06 01:54:59 +02:00
|
|
|
- $(CC) $(FLAGS) $^ -o $@$(EXT)
|
|
|
|
+ $(CC) $(FLAGS) $^ -o $@$(EXT) -L${LZ4DIR} -llz4
|
2016-04-02 21:30:27 +02:00
|
|
|
|
2017-07-06 01:54:59 +02:00
|
|
|
lz4-release: DEBUGFLAGS=
|
|
|
|
lz4-release: lz4
|
2016-04-03 01:45:52 +02:00
|
|
|
|
2017-08-25 16:19:22 +02:00
|
|
|
lz4c32: CFLAGS += -m32
|
|
|
|
lz4c32 : $(SRCFILES)
|
2017-07-06 01:54:59 +02:00
|
|
|
- $(CC) $(FLAGS) $^ -o $@$(EXT)
|
|
|
|
+ $(CC) $(FLAGS) $^ -o $@$(EXT) -L${LZ4DIR} -llz4
|
2016-04-03 01:45:52 +02:00
|
|
|
|
2017-08-25 16:19:22 +02:00
|
|
|
lz4c: lz4
|
|
|
|
ln -s lz4 lz4c
|