applied Kartik Subbarao's <subbarao@computer.org> patch for HPUX linking

This commit is contained in:
kipp%netscape.com 1999-03-20 19:05:05 +00:00
parent e05927b6bb
commit 7de24e9c64

View File

@ -59,12 +59,26 @@ SHARED_LIBRARY_LIBS = \
$(DIST)/lib/libraptorxulbase_s.a \
$(NULL)
ifeq ($(OS_ARCH),HP-UX)
EXTRA_DSO_LDOPTS = -c objs/objslist
else
EXTRA_DSO_LDOPTS = \
$(MKSHLIB_FORCE_ALL) \
$(SHARED_LIBRARY_LIBS) \
$(MKSHLIB_UNFORCE_ALL) \
$(NULL)
endif
include $(topsrcdir)/config/rules.mk
ifeq ($(OS_ARCH),HP-UX)
shared_library_objs: $(SHARED_LIBRARY_LIBS)
rm -rf objs
mkdir objs
(cd objs; for lib in $(SHARED_LIBRARY_LIBS); do ar xv ../$$lib; done) \
| awk '{ print "objs/"$$3 }' > objs/objslist
$(SHARED_LIBRARY): shared_library_objs Makefile
else
$(SHARED_LIBRARY): $(SHARED_LIBRARY_LIBS) Makefile
endif