cake
/
libg1m
Archived
1
0
Fork 0

Corrected DLL cross-compilation

This commit is contained in:
Thomas Touhey 2016-12-20 23:06:24 +01:00
parent 6eb3984700
commit 86e68cbb1a
1 changed files with 3 additions and 3 deletions

View File

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