In perl.git, the branch blead has been updated

<http://perl5.git.perl.org/perl.git/commitdiff/e2a47f809bfc63d49b2a2c9318b120e63a8fa531?hp=1c7f78227d1129fa7dbcbd8f932b0c51ff603eeb>

- Log -----------------------------------------------------------------
commit e2a47f809bfc63d49b2a2c9318b120e63a8fa531
Author: Tony Cook <t...@develop-help.com>
Date:   Sat Apr 9 10:45:37 2011 +1000

    check --whole-archive is supported (in cc.cbu) before using it
    
    netbsd for pre 4.6 gcc requires --whole-archive to build shared
    libraries, but this is rejected and not required in 4.6.0.

M       hints/netbsd.sh

commit 5e17a751850058bfb7550cd74c5226303f99d9b4
Author: Tony Cook <t...@develop-help.com>
Date:   Mon Apr 18 19:40:50 2011 +1000

    Revert "check --whole-archive is supported before using it"
    
    This reverts commit 673d8593b7ef274dadbfff97fd641e3c563fc716.
    
    I meant to apply the cc.cbu version of this patch.

M       hints/netbsd.sh
-----------------------------------------------------------------------

Summary of changes:
 hints/netbsd.sh |   18 ++++++++++--------
 1 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/hints/netbsd.sh b/hints/netbsd.sh
index c64be44..4ecd181 100644
--- a/hints/netbsd.sh
+++ b/hints/netbsd.sh
@@ -36,14 +36,16 @@ case "$osvers" in
                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
+               cat >UU/cc.cbu <<'EOCBU'
+# gcc 4.6 doesn't support --whole-archive, but it's required for the
+# system gcc to build correctly, so check for it
+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
+EOCBU
                rpathflag="-Wl,-rpath,"
                case "$osvers" in
                1.[0-5]*)

--
Perl5 Master Repository

Reply via email to