This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Re: [perl #17174] perl 5.8.0 fails tests on NetBSD/Alpha
authorJarkko Hietaniemi <jhi@iki.fi>
Sun, 15 Sep 2002 18:02:17 +0000 (21:02 +0300)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Mon, 16 Sep 2002 20:33:51 +0000 (20:33 +0000)
Message-ID: <20020915150217.GB21300@lyta.hut.fi>

p4raw-id: //depot/perl@17907

hints/netbsd.sh

index 741413e..d246d09 100644 (file)
@@ -144,3 +144,28 @@ case "$rpathflag" in
        done
        ;;
 esac
+
+case `uname -m` in
+alpha)
+    echo 'int main() {}' > try.c
+    gcc=`${cc:-cc} -v -c try.c 2>&1|grep 'gcc version egcs-2'`
+    case "$gcc" in
+    '' | "gcc version egcs-2.95."[3-9]*) ;; # 2.95.3 or better okay
+    *) cat >&4 <<EOF
+***
+*** Your gcc ($gcc) is known to be
+*** too buggy on netbsd/alpha to compile Perl with optimization.
+*** It is suggested you install the lang/gcc package which should
+*** have at least gcc 2.95.3 which should work okay: use for example
+*** Configure -Dcc=/usr/pkg/gcc-2.95.3/bin/cc.  You could also
+*** Configure -Doptimize=-O0 to compile Perl without any optimization
+*** but that is not recommended.
+***
+EOF
+       exit 1
+       ;;
+    esac
+    rm -f try.*
+    ;;
+esac
+