This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Revert "check --whole-archive is supported before using it"
authorTony Cook <tony@develop-help.com>
Mon, 18 Apr 2011 09:40:50 +0000 (19:40 +1000)
committerTony Cook <tony@develop-help.com>
Mon, 18 Apr 2011 09:41:17 +0000 (19:41 +1000)
This reverts commit 673d8593b7ef274dadbfff97fd641e3c563fc716.

I meant to apply the cc.cbu version of this patch.

hints/netbsd.sh

index c64be44..d812f60 100644 (file)
@@ -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]*)