From: Vincent Torri Date: Fri, 15 Nov 2019 18:46:06 +0000 (+0100) Subject: shared library: rename import library with .dll.a extension X-Git-Tag: v1.4.5^2~155^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b5c10b48c0faa2034c14c93a233dc3a241aa373;p=thirdparty%2Fzstd.git shared library: rename import library with .dll.a extension mort of open source project are using this extension for the import library. The Win32 linker is supporting this extension, see https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/4/html/Using_ld_the_GNU_Linker/win32.html section "direct linking to a dll" --- diff --git a/lib/Makefile b/lib/Makefile index 273ceb904..fd1710cf1 100644 --- a/lib/Makefile +++ b/lib/Makefile @@ -161,7 +161,7 @@ ifneq (,$(filter Windows%,$(OS))) LIBZSTD = dll\libzstd.dll $(LIBZSTD): $(ZSTD_FILES) @echo compiling dynamic library $(LIBVER) - $(CC) $(FLAGS) -DZSTD_DLL_EXPORT=1 -Wl,--out-implib,dll\libzstd.lib -shared $^ -o $@ + $(CC) $(FLAGS) -DZSTD_DLL_EXPORT=1 -Wl,--out-implib,dll\libzstd.dll.a -shared $^ -o $@ else