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
This commit is contained in:
Eric Biggers 2019-12-28 13:20:50 -06:00
parent 3acda56db0
commit 5d2fd6e515

View File

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