diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2002-04-29 21:43:18 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-04-29 21:43:18 +0000 |
commit | 29b5585702e5e0251cf25dc5d752e202b44bc9c8 (patch) | |
tree | 8581b0fc7d641479c8a430222f8e21b29c36ae53 /hints/openbsd.sh | |
parent | 88d123e5a08e272ee01a220b7e26ba5e88cce592 (diff) | |
download | perl-29b5585702e5e0251cf25dc5d752e202b44bc9c8.tar.gz |
OpenBSD: dynamic loading fix plus a MIPS tweak
from Todd Miller.
p4raw-id: //depot/perl@16273
Diffstat (limited to 'hints/openbsd.sh')
-rw-r--r-- | hints/openbsd.sh | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/hints/openbsd.sh b/hints/openbsd.sh index c6b6bc98ca..4839d049c5 100644 --- a/hints/openbsd.sh +++ b/hints/openbsd.sh @@ -32,7 +32,7 @@ d_setruid=$undef # ARCH=`arch | sed 's/^OpenBSD.//'` case "${ARCH}-${osvers}" in -alpha-2.[0-8]|mips-*|vax-*|powerpc-2.[0-7]|m88k-*) +alpha-2.[0-8]|mips-2.[0-8]|powerpc-2.[0-7]|m88k-*|vax-*) test -z "$usedl" && usedl=$undef ;; *) @@ -54,6 +54,11 @@ alpha-2.[0-8]|mips-*|vax-*|powerpc-2.[0-7]|m88k-*) libswanted=`echo $libswanted | sed 's/ dl / /'` ;; esac + + # We need to force ld to export symbols on ELF platforms. + # Without this, dlopen() is crippled. + ELF=`${cc:-cc} -dM -E - </dev/null | grep __ELF__` + test -n "$ELF" && ldflags="-Wl,-E $ldflags" ;; esac |