From 0d9441fd1b8296dbee6cc78d4e23ad1559711216 Mon Sep 17 00:00:00 2001 From: "jdunn%netscape.com" Date: Thu, 18 Nov 1999 02:49:30 +0000 Subject: [PATCH] Change the linking option of -Bsymbolic to only happen on Components (i.e the i18n code and NOT on anything that links in gtk r=pepper@netscape.com # 18129 --- config/rules.mk | 13 +++++++++++++ configure.in | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/config/rules.mk b/config/rules.mk index 902164044cc5..8b5ab8b44d32 100644 --- a/config/rules.mk +++ b/config/rules.mk @@ -306,6 +306,19 @@ EXTRA_DSO_LDOPTS += -L$(DIST)/bin $(BEOS_LINK_LIBS) $(NSPR_LIBS) endif endif +# +# HP-UXBeOS specific section: for COMPONENTS only, add -Bsymbolic flag +# which uses internal symbols first +# +ifeq ($(OS_ARCH),HP-UX) +ifdef IS_COMPONENT +ifeq ($(GNU_CC)$(GNU_CXX),) +EXTRA_DSO_LDOPTS += -Wl,-Bsymbolic +endif # non-gnu compilers +endif # IS_COMPONENT +endif # HP-UX + + ################################################################################ all:: export libs install diff --git a/configure.in b/configure.in index 99caf710639e..8ed0c3a65250 100644 --- a/configure.in +++ b/configure.in @@ -499,7 +499,7 @@ case "$target" in *-hpux*) DLL_SUFFIX="sl" if test ! "$GNU_CC"; then - DSO_LDOPTS='-b -Wl,+s -L$(DIST)/bin -Wl,-Bsymbolic' + DSO_LDOPTS='-b -Wl,+s -L$(DIST)/bin' DSO_CFLAGS="" DSO_PIC_CFLAGS="+Z" MKSHLIB='$(CXX) $(DSO_LDOPTS)'