summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2000-10-11 23:34:40 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2000-10-11 23:34:40 +0000
commitdc8ecad289fb680f60e63a3fb49fa1bb76056e9c (patch)
tree776425742f13ae4b806c53dfd8a4911a7349c028
parent5979e052d73945efb616978538814891cccbc16c (diff)
Use "cc -shared" not "ld -Bstatic" to build shared objects
-rw-r--r--gnu/usr.bin/perl/hints/openbsd.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/gnu/usr.bin/perl/hints/openbsd.sh b/gnu/usr.bin/perl/hints/openbsd.sh
index 5a17b2e4243..b4b7222eb4d 100644
--- a/gnu/usr.bin/perl/hints/openbsd.sh
+++ b/gnu/usr.bin/perl/hints/openbsd.sh
@@ -37,7 +37,15 @@ alpha|mips|powerpc|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 -fPIC $lddlflags"
+ ;;
+ esac
;;
esac