summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpvalchev <pvalchev@openbsd.org>2001-11-24 09:04:40 +0000
committerpvalchev <pvalchev@openbsd.org>2001-11-24 09:04:40 +0000
commitebcdd8b436314357c3f5d38e41a1fac6cd1c4046 (patch)
tree0553321ad206fcfd713c92cf33c152aa97aed7ad
parentback out changes that break kernel compiles. good testing jobmk install! (diff)
downloadwireguard-openbsd-ebcdd8b436314357c3f5d38e41a1fac6cd1c4046.tar.xz
wireguard-openbsd-ebcdd8b436314357c3f5d38e41a1fac6cd1c4046.zip
for openbsd 3.1+, don't even bother trying to pick libdl, since it is dead.
ok millert geez, i wrote that without a single mistake, amusing
-rw-r--r--gnu/usr.bin/perl/hints/openbsd.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/gnu/usr.bin/perl/hints/openbsd.sh b/gnu/usr.bin/perl/hints/openbsd.sh
index bc6471c54d1..7bebd5a8b81 100644
--- a/gnu/usr.bin/perl/hints/openbsd.sh
+++ b/gnu/usr.bin/perl/hints/openbsd.sh
@@ -41,10 +41,15 @@ alpha-2.[0-8]|mips-*|vax-*|powerpc-2.[0-7]|m88k-*)
[01].*|2.[0-7]|2.[0-7].*)
lddlflags="-Bshareable $lddlflags"
;;
- *) # from 2.8 onwards
+ 2.[8-9]) # for 2.8
ld=${cc:-cc}
lddlflags="-shared -fPIC $lddlflags"
;;
+ *) # from 3.1 onwards
+ ld=${cc:-cc}
+ lddlflags="-shared -fPIC $lddlflags"
+ libswanted=`echo $libswanted | sed 's/ dl / /'`
+ ;;
esac
;;
esac