summaryrefslogtreecommitdiff
path: root/hints/netbsd.sh
diff options
context:
space:
mode:
authorTony Cook <tony@develop-help.com>2011-04-18 19:40:50 +1000
committerTony Cook <tony@develop-help.com>2011-04-18 19:41:17 +1000
commit5e17a751850058bfb7550cd74c5226303f99d9b4 (patch)
tree0379526756ed21cad9998827bd9bb4b7c3c324a1 /hints/netbsd.sh
parent1c7f78227d1129fa7dbcbd8f932b0c51ff603eeb (diff)
downloadperl-5e17a751850058bfb7550cd74c5226303f99d9b4.tar.gz
Revert "check --whole-archive is supported before using it"
This reverts commit 673d8593b7ef274dadbfff97fd641e3c563fc716. I meant to apply the cc.cbu version of this patch.
Diffstat (limited to 'hints/netbsd.sh')
-rw-r--r--hints/netbsd.sh10
1 files changed, 1 insertions, 9 deletions
diff --git a/hints/netbsd.sh b/hints/netbsd.sh
index c64be440e0..d812f60fea 100644
--- a/hints/netbsd.sh
+++ b/hints/netbsd.sh
@@ -35,15 +35,7 @@ case "$osvers" in
d_dlopen=$define
d_dlerror=$define
cccdlflags="-DPIC -fPIC $cccdlflags"
- lddlflags="-shared $lddlflags"
- # gcc 4.6 doesn't support --whole-archive, but check for it
- # if the user chooses a new compiler later, this is pointless
- echo 'int f(void) { return 0; }' >try.c
- if ${cc:-cc} $cccdlflags -c try.c -otry.o 2>&1 &&
- ${cc:-cc} --whole-archive $lddlflags try.o -otry.so 2>&1 ; then
- lddlflags="--whole-archive $lddlflags"
- fi
- rm try.c try.o try.so 2>/dev/null
+ lddlflags="--whole-archive -shared $lddlflags"
rpathflag="-Wl,-rpath,"
case "$osvers" in
1.[0-5]*)