Change 19920 by [EMAIL PROTECTED] on 2003/07/02 05:21:23

        Move the libgcc.a hack into a section for pre-1.6 NetBSD releases.
        The latest releases of NetBSD don't require the hack.  From
        Johnny Lam.            

Affected files ...

... //depot/perl/hints/netbsd.sh#25 edit

Differences ...

==== //depot/perl/hints/netbsd.sh#25 (text) ====
Index: perl/hints/netbsd.sh
--- perl/hints/netbsd.sh#24~17907~      Mon Sep 16 13:33:51 2002
+++ perl/hints/netbsd.sh        Tue Jul  1 22:21:23 2003
@@ -37,16 +37,21 @@
                cccdlflags="-DPIC -fPIC $cccdlflags"
                lddlflags="--whole-archive -shared $lddlflags"
                rpathflag="-Wl,-rpath,"
-               #
-               # Include the whole libgcc.a into the perl executable so
-               # that certain symbols needed by loadable modules built as
-               # C++ objects (__eh_alloc, __pure_virtual, etc.) will always
-               # be defined.
-               #
-               # XXX This should be obsoleted by gcc-3.0.
-               #
-               ccdlflags="-Wl,-whole-archive -lgcc -Wl,-no-whole-archive \
-                       -Wl,-E $ccdlflags"
+               case "$osvers" in
+               1.[0-5]*)
+                       #
+                       # Include the whole libgcc.a into the perl executable
+                       # so that certain symbols needed by loadable modules
+                       # built as C++ objects (__eh_alloc, __pure_virtual,
+                       # etc.) will always be defined.
+                       #
+                       ccdlflags="-Wl,-whole-archive -lgcc \
+                               -Wl,-no-whole-archive -Wl,-E $ccdlflags"
+                       ;;
+               *)
+                       ccdlflags="-Wl,-E $ccdlflags"
+                       ;;
+               esac
        elif test -f /usr/libexec/ld.so; then
                # a.out
                d_dlopen=$define
End of Patch.

Reply via email to