This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Re: new C3 MRO patch
[perl5.git] / hints / svr5.sh
index 63442d2..ef1d7d5 100644 (file)
@@ -12,7 +12,7 @@ case "$cc" in
     #  "$gccversion" not set yet
     if [ "X$gccversion" = "X" ]; then
        # Done too late in Configure if hinted
-       gccversion=`$cc --version | sed 's/.*(GCC) *//'`
+       gccversion=`$cc -dumpversion`
     fi
     case $gccversion in
     *2.95*)
@@ -189,7 +189,7 @@ case "$usethreads" in
 $define|true|[yY]*)
         ccflags="$ccflags"
         shift
-        libswanted="$*"
+        libswanted="$libswanted $*"
   case "$cc" in
        *gcc*)
            ccflags="-D_REENTRANT $ccflags -fpic -pthread"