Only export all symbols & create import library for non-component libs in mingw build
git-svn-id: svn://10.0.0.236/trunk@139698 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
7c4d939f2e
commit
8a2667e33b
@ -519,6 +519,17 @@ EXTRA_DSO_LDOPTS += -Wl,-Bsymbolic
|
||||
endif
|
||||
endif
|
||||
|
||||
#
|
||||
# MINGW32
|
||||
#
|
||||
ifeq ($(OS_ARCH),WINNT)
|
||||
ifdef GNU_CC
|
||||
ifndef IS_COMPONENT
|
||||
DSO_LDOPTS += -Wl,--export-all-symbols -Wl,--out-implib -Wl,$(IMPORT_LIBRARY)
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(USE_TVFS),1)
|
||||
IFLAGS1 = -rb
|
||||
IFLAGS2 = -rb
|
||||
|
||||
@ -984,7 +984,7 @@ case "$target" in
|
||||
CXX="$CXX -mno-cygwin"
|
||||
CFLAGS="$CFLAGS -mms-bitfields"
|
||||
CXXFLAGS="$CXXFLAGS -mms-bitfields"
|
||||
DSO_LDOPTS='-shared -Wl,--export-all-symbols -Wl,--out-implib -Wl,$(IMPORT_LIBRARY)'
|
||||
DSO_LDOPTS='-shared'
|
||||
MKSHLIB='$(CXX) $(DSO_LDOPTS) -o $@'
|
||||
MKCSHLIB='$(CC) $(DSO_LDOPTS) -o $@'
|
||||
RC='$(CYGWIN_WRAPPER) $(WINDRES)'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user