Changed : static library is no longer compiled with -fPIC by default (this option...
authorYann Collet <yann.collet.73@gmail.com>
Sat, 27 Jun 2015 09:30:31 +0000 (01:30 -0800)
committerYann Collet <yann.collet.73@gmail.com>
Sat, 27 Jun 2015 09:30:31 +0000 (01:30 -0800)
Makefile
NEWS
lib/Makefile

index 863c866e21a0f02a2eff22051c9629a9a6367610..2b2f2690541d0cd112adb377dbbd08937e747716 100644 (file)
--- 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 8347f6344084b374b636f05ffb428a0210c7f779..b403d0f5209cb3777d23c5cac711b8ffd6004614 100644 (file)
--- 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)
index 4be1499bfb82e92e7704401b71696506b1769483..05260ca9a104658a2ba4305e802b2fcd9c9d964c 100644 (file)
@@ -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)