From 5d2fd6e5157fb4b2f6d465d8ac585f835ae84e1e Mon Sep 17 00:00:00 2001 From: Eric Biggers Date: Sat, 28 Dec 2019 13:20:50 -0600 Subject: [PATCH] Export stdcall functions as both suffixed and non-suffixed The default is suffixed names, but some programming languages expect non-suffixed names. Resolves https://github.com/ebiggers/libdeflate/issues/59 --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 44fefaf..29116b3 100644 --- a/Makefile +++ b/Makefile @@ -72,7 +72,8 @@ ifneq ($(findstring -mingw,$(shell $(CC) -dumpmachine 2>/dev/null)),) SHARED_LIB := libdeflate.dll SHARED_LIB_SYMLINK := SHARED_LIB_CFLAGS := - SHARED_LIB_LDFLAGS := -Wl,--out-implib,libdeflate.lib + SHARED_LIB_LDFLAGS := -Wl,--out-implib,libdeflate.lib \ + -Wl,--add-stdcall-alias PROG_SUFFIX := .exe PROG_CFLAGS := -static -municode HARD_LINKS :=