summaryrefslogtreecommitdiff
path: root/hints/openbsd.sh
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2000-10-03 00:10:48 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2000-10-03 00:10:48 +0000
commit154d43cbcf57271c884e15f24587b4e8d54edbdb (patch)
tree31a25810e17fb802cc21486c6c341a88e087028f /hints/openbsd.sh
parent9c0670e1eab17cd3b7453bbff593c4ad6ff9bde0 (diff)
downloadperl-154d43cbcf57271c884e15f24587b4e8d54edbdb.tar.gz
OpenBSD flags tweak from Todd C. Miller, tweaked some more by Abigail.
p4raw-id: //depot/perl@7122
Diffstat (limited to 'hints/openbsd.sh')
-rw-r--r--hints/openbsd.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/hints/openbsd.sh b/hints/openbsd.sh
index a7d8bf2950..5b79709055 100644
--- a/hints/openbsd.sh
+++ b/hints/openbsd.sh
@@ -37,7 +37,15 @@ OpenBSD.alpha|OpenBSD.mips|OpenBSD.powerpc|OpenBSD.vax)
# we use -fPIC here because -fpic is *NOT* enough for some of the
# extensions like Tk on some OpenBSD platforms (ie: sparc)
cccdlflags="-DPIC -fPIC $cccdlflags"
- lddlflags="-Bshareable $lddlflags"
+ case "$osvers" in
+ [01].*|2.[0-7]|2.[0-7].*)
+ lddlflags="-Bshareable $lddlflags"
+ ;;
+ *) # from 2.8 onwards
+ ld=${cc:-cc}
+ lddlflags="-shared $lddlflags"
+ ;;
+ esac
;;
esac