Support building DLLs with MSVC
MSVC doesn't export any functions at all by default, contrary to gcc which exports all global functions by default. Doing the same for linux/OS X isn't too hard, but they use yet two other, different syntaxes for the corresponding symbol file.
This commit is contained in:
parent
42fb4f562e
commit
b1d8671bd4
2
Makefile
2
Makefile
@ -123,7 +123,7 @@ $(LIBPREFIX)wels.$(LIBSUFFIX): $(ENCODER_OBJS) $(DECODER_OBJS) $(PROCESSING_OBJS
|
||||
|
||||
$(LIBPREFIX)wels.$(SHAREDLIBSUFFIX): $(ENCODER_OBJS) $(DECODER_OBJS) $(PROCESSING_OBJS) $(COMMON_OBJS)
|
||||
$(QUIET)rm -f $@
|
||||
$(QUIET_CXX)$(CXX) $(SHARED) $(LDFLAGS) $(CXX_LINK_O) $+
|
||||
$(QUIET_CXX)$(CXX) $(SHARED) $(LDFLAGS) $(CXX_LINK_O) $+ $(SHLDFLAGS)
|
||||
|
||||
install: $(LIBPREFIX)wels.$(LIBSUFFIX) $(LIBPREFIX)wels.$(SHAREDLIBSUFFIX)
|
||||
mkdir -p $(PREFIX)/lib
|
||||
|
@ -13,3 +13,6 @@ LINK_LIB=$(1).lib
|
||||
LIBSUFFIX=lib
|
||||
LIBPREFIX=
|
||||
EXEEXT=.exe
|
||||
SHAREDLIBSUFFIX=dll
|
||||
SHARED=-LD
|
||||
SHLDFLAGS=-link -def:wels.def -implib:wels_dll.lib
|
||||
|
Loading…
x
Reference in New Issue
Block a user