Change 16273 by jhi@alpha on 2002/04/29 21:43:18
OpenBSD: dynamic loading fix plus a MIPS tweak
from Todd Miller.
Affected files ...
.... //depot/perl/hints/openbsd.sh#15 edit
Differences ...
==== //depot/perl/hints/openbsd.sh#15 (text) ====
Index: perl/hints/openbsd.sh
--- perl/hints/openbsd.sh.~1~ Mon Apr 29 16:00:05 2002
+++ perl/hints/openbsd.sh Mon Apr 29 16:00:05 2002
@@ -32,7 +32,7 @@
#
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 @@
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
End of Patch.