summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwtchang%redhat.com <devnull@localhost>2005-11-11 22:07:50 +0000
committerwtchang%redhat.com <devnull@localhost>2005-11-11 22:07:50 +0000
commit11c39042032dbf54e0f50ed85107e813525ea2ff (patch)
treeb59a572e0d503c62026f56bbdf6f8dfd225cbc52
parent4437fd669ca26175e2fe824e4060b790c4c42847 (diff)
downloadnspr-hg-NSPR_4_6_PORTING_BRANCH.tar.gz
Bugzilla bug 312199: on HP-UX ia64, use +b $ORIGIN on all NSPR sharedNSPR_4_6_RTM_HPUX_IPFNSPR_4_6_PORTING_BRANCH
libraries, not just libplc4.so and libplds4.so. Modified Files: Tag: NSPR_4_6_PORTING_BRANCH configure configure.in lib/ds/Makefile.in lib/libc/src/Makefile.in
-rwxr-xr-xconfigure45
-rw-r--r--configure.in1
-rw-r--r--lib/ds/Makefile.in6
-rw-r--r--lib/libc/src/Makefile.in6
4 files changed, 24 insertions, 34 deletions
diff --git a/configure b/configure
index cb719082..2dd17809 100755
--- a/configure
+++ b/configure
@@ -3422,6 +3422,7 @@ EOF
PR_MD_CSRCS=hpux.c
if test "$OS_TEST" = "ia64"; then
DLL_SUFFIX=so
+ DSO_LDOPTS="$DSO_LDOPTS +b '\$\$ORIGIN'"
CPU_ARCH_TAG=_$OS_TEST
if test -z "$USE_64"; then
COMPILER_TAG=_32
@@ -4295,17 +4296,17 @@ EOF
_OPTIMIZE_FLAGS="$_OPTIMIZE_FLAGS -Olimit 4000"
ac_safe=`echo "machine/builtins.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for machine/builtins.h""... $ac_c" 1>&6
-echo "configure:4299: checking for machine/builtins.h" >&5
+echo "configure:4300: checking for machine/builtins.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 4304 "configure"
+#line 4305 "configure"
#include "confdefs.h"
#include <machine/builtins.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:4309: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:4310: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
@@ -4847,7 +4848,7 @@ case $target in
;;
*)
echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
-echo "configure:4851: checking for dlopen in -ldl" >&5
+echo "configure:4852: checking for dlopen in -ldl" >&5
ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
@@ -4855,7 +4856,7 @@ else
ac_save_LIBS="$LIBS"
LIBS="-ldl $LIBS"
cat > conftest.$ac_ext <<EOF
-#line 4859 "configure"
+#line 4860 "configure"
#include "confdefs.h"
/* Override any gcc2 internal prototype to avoid an error. */
/* We use char because int might match the return type of a gcc2
@@ -4866,7 +4867,7 @@ int main() {
dlopen()
; return 0; }
EOF
-if { (eval echo configure:4870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:4871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_lib_$ac_lib_var=yes"
else
@@ -4883,17 +4884,17 @@ if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
echo "$ac_t""yes" 1>&6
ac_safe=`echo "dlfcn.h" | sed 'y%./+-%__p_%'`
echo $ac_n "checking for dlfcn.h""... $ac_c" 1>&6
-echo "configure:4887: checking for dlfcn.h" >&5
+echo "configure:4888: checking for dlfcn.h" >&5
if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 4892 "configure"
+#line 4893 "configure"
#include "confdefs.h"
#include <dlfcn.h>
EOF
ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:4897: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:4898: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
if test -z "$ac_err"; then
rm -rf conftest*
@@ -4926,13 +4927,13 @@ esac
if test $ac_cv_prog_gcc = yes; then
echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
-echo "configure:4930: checking whether ${CC-cc} needs -traditional" >&5
+echo "configure:4931: checking whether ${CC-cc} needs -traditional" >&5
if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
ac_pattern="Autoconf.*'x'"
cat > conftest.$ac_ext <<EOF
-#line 4936 "configure"
+#line 4937 "configure"
#include "confdefs.h"
#include <sgtty.h>
Autoconf TIOCGETP
@@ -4950,7 +4951,7 @@ rm -f conftest*
if test $ac_cv_prog_gcc_traditional = no; then
cat > conftest.$ac_ext <<EOF
-#line 4954 "configure"
+#line 4955 "configure"
#include "confdefs.h"
#include <termio.h>
Autoconf TCGETA
@@ -4974,12 +4975,12 @@ fi
for ac_func in lchown strerror
do
echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
-echo "configure:4978: checking for $ac_func" >&5
+echo "configure:4979: checking for $ac_func" >&5
if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
cat > conftest.$ac_ext <<EOF
-#line 4983 "configure"
+#line 4984 "configure"
#include "confdefs.h"
/* System header to define __stub macros and hopefully few prototypes,
which can conflict with char $ac_func(); below. */
@@ -5002,7 +5003,7 @@ $ac_func();
; return 0; }
EOF
-if { (eval echo configure:5006: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:5007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
rm -rf conftest*
eval "ac_cv_func_$ac_func=yes"
else
@@ -5043,7 +5044,7 @@ hpux*)
if test -z "$GNU_CC"; then
echo $ac_n "checking for +Olit support""... $ac_c" 1>&6
-echo "configure:5047: checking for +Olit support" >&5
+echo "configure:5048: checking for +Olit support" >&5
if eval "test \"`echo '$''{'ac_cv_hpux_usable_olit_option'+set}'`\" = set"; then
echo $ac_n "(cached) $ac_c" 1>&6
else
@@ -5077,7 +5078,7 @@ esac
echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
-echo "configure:5081: checking for pthread_create in -lpthreads" >&5
+echo "configure:5082: checking for pthread_create in -lpthreads" >&5
echo "
#include <pthread.h>
void *foo(void *v) { return v; }
@@ -5099,7 +5100,7 @@ echo "
echo "$ac_t""no" 1>&6
echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
-echo "configure:5103: checking for pthread_create in -lpthread" >&5
+echo "configure:5104: checking for pthread_create in -lpthread" >&5
echo "
#include <pthread.h>
void *foo(void *v) { return v; }
@@ -5121,7 +5122,7 @@ echo "
echo "$ac_t""no" 1>&6
echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
-echo "configure:5125: checking for pthread_create in -lc_r" >&5
+echo "configure:5126: checking for pthread_create in -lc_r" >&5
echo "
#include <pthread.h>
void *foo(void *v) { return v; }
@@ -5143,7 +5144,7 @@ echo "
echo "$ac_t""no" 1>&6
echo $ac_n "checking for pthread_create in -lc""... $ac_c" 1>&6
-echo "configure:5147: checking for pthread_create in -lc" >&5
+echo "configure:5148: checking for pthread_create in -lc" >&5
echo "
#include <pthread.h>
void *foo(void *v) { return v; }
@@ -5295,7 +5296,7 @@ if test -n "$USE_PTHREADS"; then
rm -f conftest*
ac_cv_have_dash_pthread=no
echo $ac_n "checking whether ${CC-cc} accepts -pthread""... $ac_c" 1>&6
-echo "configure:5299: checking whether ${CC-cc} accepts -pthread" >&5
+echo "configure:5300: checking whether ${CC-cc} accepts -pthread" >&5
echo 'int main() { return 0; }' | cat > conftest.c
${CC-cc} -pthread -o conftest conftest.c > conftest.out 2>&1
if test $? -eq 0; then
@@ -5318,7 +5319,7 @@ echo "configure:5299: checking whether ${CC-cc} accepts -pthread" >&5
ac_cv_have_dash_pthreads=no
if test "$ac_cv_have_dash_pthread" = "no"; then
echo $ac_n "checking whether ${CC-cc} accepts -pthreads""... $ac_c" 1>&6
-echo "configure:5322: checking whether ${CC-cc} accepts -pthreads" >&5
+echo "configure:5323: checking whether ${CC-cc} accepts -pthreads" >&5
echo 'int main() { return 0; }' | cat > conftest.c
${CC-cc} -pthreads -o conftest conftest.c > conftest.out 2>&1
if test $? -eq 0; then
diff --git a/configure.in b/configure.in
index 07084387..03beeb4c 100644
--- a/configure.in
+++ b/configure.in
@@ -1010,6 +1010,7 @@ case "$target" in
PR_MD_CSRCS=hpux.c
if test "$OS_TEST" = "ia64"; then
DLL_SUFFIX=so
+ DSO_LDOPTS="$DSO_LDOPTS +b '\$\$ORIGIN'"
CPU_ARCH_TAG=_$OS_TEST
if test -z "$USE_64"; then
COMPILER_TAG=_32
diff --git a/lib/ds/Makefile.in b/lib/ds/Makefile.in
index 905b4750..516e1a37 100644
--- a/lib/ds/Makefile.in
+++ b/lib/ds/Makefile.in
@@ -102,12 +102,6 @@ endif
MKSHLIB += -R '$$ORIGIN'
endif
-ifeq ($(OS_ARCH),HP-UX)
-ifeq ($(OS_TEST),ia64)
-MKSHLIB += +b '$$ORIGIN'
-endif
-endif
-
ifeq ($(OS_ARCH),OS2)
MAPFILE = $(OBJDIR)/$(LIBRARY_NAME)$(LIBRARY_VERSION).def
GARBAGE += $(MAPFILE)
diff --git a/lib/libc/src/Makefile.in b/lib/libc/src/Makefile.in
index 98a85a5c..162b3ed9 100644
--- a/lib/libc/src/Makefile.in
+++ b/lib/libc/src/Makefile.in
@@ -112,12 +112,6 @@ endif
MKSHLIB += -R '$$ORIGIN'
endif
-ifeq ($(OS_ARCH),HP-UX)
-ifeq ($(OS_TEST),ia64)
-MKSHLIB += +b '$$ORIGIN'
-endif
-endif
-
ifeq ($(OS_ARCH),OS2)
MAPFILE = $(OBJDIR)/$(LIBRARY_NAME)$(LIBRARY_VERSION).def
GARBAGE += $(MAPFILE)