From: Jarkko Hietaniemi Date: Mon, 29 Apr 2002 21:43:18 +0000 (+0000) Subject: OpenBSD: dynamic loading fix plus a MIPS tweak X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=29b5585702e5e0251cf25dc5d752e202b44bc9c8;p=p5sagit%2Fp5-mst-13.2.git OpenBSD: dynamic loading fix plus a MIPS tweak from Todd Miller. p4raw-id: //depot/perl@16273 --- diff --git a/hints/openbsd.sh b/hints/openbsd.sh index c6b6bc9..4839d04 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 -