From 86e68cbb1a34439b0a4856dddd8a800bab5a379d Mon Sep 17 00:00:00 2001 From: "Thomas \"Cakeisalie5\" Touhey" Date: Tue, 20 Dec 2016 23:06:24 +0100 Subject: [PATCH] Corrected DLL cross-compilation --- Makefile.vars | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile.vars b/Makefile.vars index 1d0e8e2..8e39f54 100755 --- a/Makefile.vars +++ b/Makefile.vars @@ -75,12 +75,12 @@ # Linker LD := $(TARGET)gcc # - Specific linker flags - LDFLAGS_Windows := -lws2_32 -mdll -Wl,--out-implib,$(SONAME) - LDFLAGS_Linux := -shared -Wl,-soname,$(SONAME) \ + LDFLAGS_Windows := -lws2_32 + LDFLAGS_Linux := -Wl,-soname,$(SONAME) \ -e __lib$(NAME)_version \ -Wl,-z,relro -Wl,-z,combreloc -Wl,-z,defs # - Linker flags - LDFLAGS := -lz \ + LDFLAGS := -shared -lz \ $(if $(FOR_WINDOWS),$(LDFLAGS_Windows),$(LDFLAGS_Linux)) # Directory maker