mirror of
https://github.com/gnustep/tools-make.git
synced 2025-04-22 22:00:49 +00:00
On Mingw, link a library against all libraries ... required for GCC to find
the symbols git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@20888 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
f51c01d02a
commit
87e40c16a7
1 changed files with 16 additions and 0 deletions
|
@ -103,6 +103,22 @@ else
|
|||
LIBRARY_NAME_WITHOUT_LIB = $(GNUSTEP_INSTANCE)
|
||||
endif
|
||||
|
||||
# On windows, this is unfortunately required.
|
||||
ifeq ($(BUILD_DLL), yes)
|
||||
LINK_AGAINST_ALL_LIBS = yes
|
||||
endif
|
||||
|
||||
ifeq ($(LINK_AGAINST_ALL_LIBS), yes)
|
||||
# Link against all libs ... but not the one we're compiling! (this can
|
||||
# happen, for example, with gnustep-gui)
|
||||
LIBRARIES_DEPEND_UPON += $(filter-out -l$(LIBRARY_NAME_WITHOUT_LIB), \
|
||||
$(ADDITIONAL_GUI_LIBS) $(AUXILIARY_GUI_LIBS) \
|
||||
$(BACKEND_LIBS) \
|
||||
$(GUI_LIBS) $(ADDITIONAL_TOOL_LIBS) $(AUXILIARY_TOOL_LIBS) \
|
||||
$(FND_LIBS) $(ADDITIONAL_OBJC_LIBS) $(AUXILIARY_OBJC_LIBS) $(OBJC_LIBS) \
|
||||
$(SYSTEM_LIBS) $(TARGET_SYSTEM_LIBS))
|
||||
endif
|
||||
|
||||
INTERNAL_LIBRARIES_DEPEND_UPON = \
|
||||
$(shell $(WHICH_LIB_SCRIPT) \
|
||||
$(ALL_LIB_DIRS) \
|
||||
|
|
Loading…
Reference in a new issue