Fix for platforms that don't have --whole-archive, --no-whole-archive equivalents (both).
This commit is contained in:
Родитель
d4aafab09e
Коммит
0d87f5ae21
|
@ -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" $@
|
||||
|
|
Загрузка…
Ссылка в новой задаче