Generate list of exported libraries to be used for final link as we traverse the tree. Bug #46775

This commit is contained in:
cls%seawood.org 2001-04-28 18:51:31 +00:00
Родитель f8395da772
Коммит a74effc1af
2 изменённых файлов: 21 добавлений и 2 удалений

Просмотреть файл

@ -159,6 +159,9 @@ endif
OS_CONFIG := $(OS_ARCH)$(OS_RELEASE)
FINAL_LINK_LIBS = $(DEPTH)/config/final-link-libs
FINAL_LINK_COMPS = $(DEPTH)/config/final-link-comps
# determine debug-related options
DEBUG_FLAGS :=

Просмотреть файл

@ -508,6 +508,22 @@ endif
export:: $(SUBMAKEFILES) $(MAKE_DIRS) $(MKDEPEND_BUILTIN)
+$(LOOP_OVER_DIRS)
#
# Rule to create list of libraries for final link
#
export::
ifdef LIBRARY_NAME
ifdef EXPORT_LIBRARY
ifdef IS_COMPONENT
ifndef NO_STATIC_LIB
@$(PERL) $(topsrcdir)/config/build-list.pl $(FINAL_LINK_COMPS) $(LIBRARY_NAME)
endif
else
$(PERL) $(topsrcdir)/config/build-list.pl $(FINAL_LINK_LIBS) $(LIBRARY_NAME)
endif # IS_COMPONENT
endif # EXPORT_LIBRARY
endif # LIBRARY_NAME
##############################################
install:: $(SUBMAKEFILES) $(MAKE_DIRS) $(HOST_LIBRARY) $(LIBRARY) $(SHARED_LIBRARY) $(IMPORT_LIBRARY) $(HOST_PROGRAM) $(PROGRAM) $(HOST_SIMPLE_PROGRAMS) $(SIMPLE_PROGRAMS) $(MAPS)
ifndef NO_STATIC_LIB
@ -521,8 +537,8 @@ else
$(INSTALL) $(IFLAGS1) $(LIBRARY) $(DIST)/lib
endif
endif # OS2
endif
endif
endif # LIBRARY
endif # ! NO_STATIC_LIB
ifdef MAPS
$(INSTALL) $(IFLAGS1) $(MAPS) $(DIST)/bin
endif