From f993a8fa26f9df50484fa81c6c3c263ecf22c386 Mon Sep 17 00:00:00 2001 From: jmc Date: Sat, 8 Mar 2003 06:00:03 +0000 Subject: Turns out gcc 2.95.3 is no better on powerpc for compiling this. Use -O always for powerpc --- games/gnuchess/Makefile | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'games/gnuchess') diff --git a/games/gnuchess/Makefile b/games/gnuchess/Makefile index 22b638fa3e9..5ac4c084740 100644 --- a/games/gnuchess/Makefile +++ b/games/gnuchess/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.14 2002/03/15 04:59:16 jmc Exp $ +# $NetBSD: Makefile,v 1.15 2003/03/08 06:00:03 jmc Exp $ # FreeBSD Id: Makefile,v 1.6 1999/01/27 07:41:12 fenner Exp # @@ -24,9 +24,8 @@ WRKSRC= ${WRKDIR}/${DISTNAME}/src BOOKDIR= ${PREFIX}/lib/gnuchess DOCDIR= ${PREFIX}/share/doc/gnuchess -# powerpc egcs has problems with -O2 here -GCC_VERSION!= gcc --version -.if (${GCC_VERSION:C/-.*$$//} == egcs) && (${MACHINE_ARCH} == "powerpc") +# powerpc has problems with anything >= -O2 here +.if (${MACHINE_ARCH} == "powerpc") CONFIGURE_ENV+= CFLAGS="-O -Winline -Wmissing-prototypes -funroll-loops" .else CONFIGURE_ENV+= CFLAGS="-O3 -Winline -Wmissing-prototypes -funroll-loops -fomit-frame-pointer" -- cgit v1.2.3