diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2002-09-15 21:02:17 +0300 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2002-09-16 20:33:51 +0000 |
commit | f42e9f9012367e58b1bc8229a10035f5c1ac8612 (patch) | |
tree | 487394a7061d0a3e9e712cc928f71a8c742dadf5 /hints/netbsd.sh | |
parent | 7ef5744c3d4533e5052c995815258d3686f7e8ae (diff) | |
download | perl-f42e9f9012367e58b1bc8229a10035f5c1ac8612.tar.gz |
Re: [perl #17174] perl 5.8.0 fails tests on NetBSD/Alpha
Message-ID: <20020915150217.GB21300@lyta.hut.fi>
p4raw-id: //depot/perl@17907
Diffstat (limited to 'hints/netbsd.sh')
-rw-r--r-- | hints/netbsd.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/hints/netbsd.sh b/hints/netbsd.sh index 741413ed4f..d246d09fe5 100644 --- a/hints/netbsd.sh +++ b/hints/netbsd.sh @@ -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 + |