Linux: solve link error on recent Ubuntu when using shared wxWidgets.

This commit is contained in:
Mounir IDRASSI 2015-01-02 17:09:56 +01:00
parent 271d39d942
commit ad9b40d599
2 changed files with 5 additions and 2 deletions

View File

@ -123,7 +123,7 @@ endif
$(APPNAME): $(LIBS) $(OBJS) $(APPNAME): $(LIBS) $(OBJS)
@echo Linking $@ @echo Linking $@
$(CXX) -o $(APPNAME) $(LFLAGS) $(OBJS) $(LIBS) $(FUSE_LIBS) $(WX_LIBS) $(CXX) -o $(APPNAME) $(OBJS) $(LIBS) $(FUSE_LIBS) $(WX_LIBS) $(LFLAGS)
ifeq "$(TC_BUILD_CONFIG)" "Release" ifeq "$(TC_BUILD_CONFIG)" "Release"
ifndef NOSTRIP ifndef NOSTRIP

View File

@ -168,8 +168,11 @@ ifeq "$(shell uname -s)" "Linux"
WXCONFIG_CXXFLAGS += -fdata-sections -ffunction-sections WXCONFIG_CXXFLAGS += -fdata-sections -ffunction-sections
endif endif
endif ifneq "$(origin WXSTATIC)" "command line"
LFLAGS += -ldl
endif
endif
#------ Mac OS X configuration ------ #------ Mac OS X configuration ------