summaryrefslogtreecommitdiff
path: root/games/gnuchess
diff options
context:
space:
mode:
authorjmc <jmc@pkgsrc.org>2003-03-08 06:00:03 +0000
committerjmc <jmc@pkgsrc.org>2003-03-08 06:00:03 +0000
commitf993a8fa26f9df50484fa81c6c3c263ecf22c386 (patch)
tree992b2c013f01941dcf94edc7abdcdad9a5e913f3 /games/gnuchess
parenteecc680e16132b0825bed2030c3f216981bf78f6 (diff)
downloadpkgsrc-f993a8fa26f9df50484fa81c6c3c263ecf22c386.tar.gz
Turns out gcc 2.95.3 is no better on powerpc for compiling this. Use -O always
for powerpc
Diffstat (limited to 'games/gnuchess')
-rw-r--r--games/gnuchess/Makefile7
1 files changed, 3 insertions, 4 deletions
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"