diff options
author | Przemyslaw Skibinski <inikep@gmail.com> | 2016-11-09 15:07:28 (GMT) |
---|---|---|
committer | Przemyslaw Skibinski <inikep@gmail.com> | 2016-11-09 15:07:28 (GMT) |
commit | 773ae50b477e052146f64c23e3b95d3cbc07db18 (patch) | |
tree | d535094d9926b9e5f3493fd0a34c431933d09c62 /lib/Makefile | |
parent | ca80a7c8f77f5405cba5b8a52abb1dda78602bf7 (diff) | |
download | lz4-773ae50b477e052146f64c23e3b95d3cbc07db18.zip lz4-773ae50b477e052146f64c23e3b95d3cbc07db18.tar.gz lz4-773ae50b477e052146f64c23e3b95d3cbc07db18.tar.bz2 |
DLL exports only functions defined in liblz4.def
Diffstat (limited to 'lib/Makefile')
-rw-r--r-- | lib/Makefile | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Makefile b/lib/Makefile index 6e58bb0..70bdfc7 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -84,7 +84,8 @@ endif liblz4: *.c @echo compiling dynamic library $(LIBVER) ifneq (,$(filter Windows%,$(OS))) - @$(CC) $(FLAGS) -shared $^ -o $@.dll -Wl,--out-implib,liblz4.dll.a + @$(CC) $(FLAGS) -DLZ4_DLL_EXPORT=1 -shared $^ -o $@.dll + dlltool -D liblz4.dll -d liblz4.def -l liblz4.dll.a else @$(CC) $(FLAGS) -shared $^ -fPIC $(SONAME_FLAGS) -o $@.$(SHARED_EXT_VER) @echo creating versioned links |