Fix for platforms that don't have --whole-archive, --no-whole-archive equivalents (both).

This commit is contained in:
briano%netscape.com 1999-08-03 02:08:12 +00:00
Родитель d4aafab09e
Коммит 0d87f5ae21
1 изменённых файлов: 9 добавлений и 2 удалений

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

@ -597,8 +597,15 @@ endif
ifneq ($(OS_ARCH),OS2)
$(SHARED_LIBRARY): $(OBJS) $(LOBJS)
rm -f $@
ifneq ($(OS_ARCH), OpenVMS)
$(MKSHLIB) -o $@ $(OBJS) $(LOBJS) $(EXTRA_DSO_LDOPTS)
ifneq ($(OS_ARCH),OpenVMS)
ifeq ($(NO_LD_ARCHIVE_FLAGS),1)
ifdef SHARED_LIBRARY_LIBS
@rm -f $(SUB_LOBJS)
@for lib in $(SHARED_LIBRARY_LIBS); do $(AR_EXTRACT) $${lib}; $(CLEANUP2); done
endif
endif
$(MKSHLIB) -o $@ $(OBJS) $(LOBJS) $(SUB_LOBJS) $(EXTRA_DSO_LDOPTS)
@rm -f foodummyfilefoo $(SUB_LOBJS)
ifdef MOZ_STRIP_NOT_EXPORTED
ifdef INHIBIT_STRIP_NOT_EXPORTED
objcopy -R ".exports" $@