summaryrefslogtreecommitdiff
path: root/hints/hpux.sh
diff options
context:
space:
mode:
authorPerl 5 Porters <perl5-porters@africa.nicoh.com>1996-06-24 03:49:34 +0000
committerCharles Bailey <bailey@genetics.upenn.edu>1996-06-24 03:49:34 +0000
commit214989af332323880cfb3faa7cce6d0317a4eba9 (patch)
tree4d6142403b07319ac0839c44be9cd9ef8f66bf83 /hints/hpux.sh
parentd84bea6a560458ec6168f312a9ed7883007af513 (diff)
downloadperl-214989af332323880cfb3faa7cce6d0317a4eba9.tar.gz
Make deferred loading of shared libraries the default
Diffstat (limited to 'hints/hpux.sh')
-rw-r--r--hints/hpux.sh13
1 files changed, 8 insertions, 5 deletions
diff --git a/hints/hpux.sh b/hints/hpux.sh
index 0f8d33c6ae..8eaf272d70 100644
--- a/hints/hpux.sh
+++ b/hints/hpux.sh
@@ -94,11 +94,14 @@ fi
set `echo " $libswanted " | sed -e 's@ ld @ @' -e 's@ dbm @ @' -e 's@ BSD @ @' -e 's@ PW @ @'`
libswanted="$*"
-# If you copy the perl binaries to other systems and the dynamic loader
-# complains about missing libraries, you can either copy the shared libraries
-# or switch the comments to recompile perl to use archive libraries
-# ccdlflags="-Wl,-E -Wl,-a,archive $ccdlflags"
-ccdlflags="-Wl,-E $ccdlflags"
+# By setting the deferred flag below, this means that if you run perl on a
+# system that does not have the required shared library that you linked it
+# with, it will die when you try to access a symbol in the (missing) shared
+# library. If you would rather know at perl startup time that you are
+# missing an important shared library, switch the comments so that immediate,
+# rather than deferred loading is performed.
+# ccdlflags="-Wl,-E $ccdlflags"
+ccdlflags="-Wl,-E -Wl,-B,deferred $ccdlflags"
usemymalloc='y'
alignbytes=8