Corrected DLL cross-compilation
This commit is contained in:
parent
6eb3984700
commit
86e68cbb1a
|
@ -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
|
||||
|
|
Reference in New Issue