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