From e1d9b593e197bbb7f03be38739015a4fa7976c26 Mon Sep 17 00:00:00 2001 From: Yann Collet Date: Sun, 8 Mar 2015 12:50:40 +0100 Subject: [PATCH] Fixed : static library (x64 binary) --- lib/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Makefile b/lib/Makefile index aab4369..9c479cb 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -67,7 +67,7 @@ all: liblz4 liblz4: lz4.c lz4hc.c lz4frame.c xxhash.c @echo compiling static library - @$(CC) $(CPPFLAGS) $(CFLAGS) -c $^ + @$(CC) $(CPPFLAGS) $(CFLAGS) -fPIC -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) -- 2.7.4