From c04df7e1b5fb1e4ffa796d2b3d2dea208f7116da Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Sat, 27 Jun 2015 01:30:31 -0800 Subject: Changed : static library is no longer compiled with -fPIC by default (this option can still be added on the command line) See #53 --- Makefile | 8 ++++++-- NEWS | 3 +++ lib/Makefile | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 863c866..2b2f269 100644 --- a/Makefile +++ b/Makefile @@ -58,12 +58,16 @@ VOID = /dev/null endif +.PHONY: default all lib lz4programs clean + default: lz4programs -all: - @cd $(LZ4DIR); $(MAKE) -e all +all: lib @cd $(PRGDIR); $(MAKE) -e all +lib: + @cd $(LZ4DIR); $(MAKE) -e all + lz4programs: @cd $(PRGDIR); $(MAKE) -e diff --git a/NEWS b/NEWS index 8347f63..b403d0f 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,6 @@ +r131 +Added : Example using lz4frame library, by Zbigniew Jędrzejewski-Szmek (#118) + r130: Fixed : incompatibility sparse mode vs console, reported by Yongwoon Cho (#105) Fixed : LZ4IO exits too early when frame crc not present, reported by Yongwoon Cho (#106) diff --git a/lib/Makefile b/lib/Makefile index 4be1499..05260ca 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -66,7 +66,7 @@ all: liblz4 liblz4: lz4.c lz4hc.c lz4frame.c xxhash.c @echo compiling static library - @$(CC) $(CPPFLAGS) $(CFLAGS) -fPIC -c $^ + @$(CC) $(CPPFLAGS) $(CFLAGS) -c $^ @$(AR) rcs liblz4.a lz4.o lz4hc.o lz4frame.o xxhash.o @echo compiling dynamic library $(LIBVER) @$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -shared $^ -fPIC $(SONAME_FLAGS) -o $@.$(SHARED_EXT_VER) -- cgit v0.12