Changed : static library is no longer compiled with -fPIC by default (this option can still be added on the command line) See #53

This commit is contained in:
Yann Collet 2015-06-27 01:30:31 -08:00
parent cdef033895
commit c04df7e1b5
3 changed files with 10 additions and 3 deletions

View File

@ -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

3
NEWS
View File

@ -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)

View 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)