From ea0c71f8ae283cc6f9355a86d8eb86f663ee5bed Mon Sep 17 00:00:00 2001 From: Kris Kennaway Date: Mon, 30 Apr 2001 04:44:02 +0000 Subject: Respect CC and CFLAGS, don't hard-code -O2 --- games/gnushogi/files/patch-aa | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) (limited to 'games/gnushogi') diff --git a/games/gnushogi/files/patch-aa b/games/gnushogi/files/patch-aa index 3bef78685438..bfcd7cf359d3 100644 --- a/games/gnushogi/files/patch-aa +++ b/games/gnushogi/files/patch-aa @@ -1,5 +1,5 @@ --- src/Makefile.orig Wed May 24 07:05:26 1995 -+++ src/Makefile Fri Jan 3 02:57:59 1997 ++++ src/Makefile Sun Apr 29 21:39:00 2001 @@ -41,22 +41,22 @@ DIST= ../README-$(VERS) ../doc ../misc ../src @@ -27,13 +27,22 @@ # Programs being distributed PROGS=gnushogi-$(VERS) +@@ -76,7 +76,7 @@ + #CC= c89 $(OPT) $(GENOPT) + # Use this if you are lucky enough to have GNU CC. + #CC= /usr/pub/bin/gcc -fsigned-char $(OPT) $(GENOPT) +-CC= gcc -W -fsigned-char $(OPT) $(GENOPT) ++CC+= -W -fsigned-char $(OPT) $(GENOPT) + #CC= cc $(OPT) $(GENOPT) + + # Miscellaneous CFLAGS. Uncomment the one you need and comment the other @@ -96,7 +96,8 @@ #CFLAGS= -O2 -funroll-loops -traditional-cpp -DNO_STRING_INCLUDE -DNOFIONREAD # gnu cc 2.00 (hawk) #CFLAGS= -O2 -funroll-loops -DSEVENBIT # djgpp #CFLAGS= -g -funroll-loops # gnu cc 2.00 on SunOS with debug -CFLAGS= -O2 -funroll-loops # gnu cc 2.00 on SunOS +#CFLAGS= -O2 -funroll-loops # gnu cc 2.00 on SunOS -+CFLAGS= -O2 -pipe -fno-strength-reduce ++CFLAGS+=-fno-strength-reduce # flags for DJGPP package #COFF2EXE= coff2exe $(GNUSHOGI) -- cgit v1.2.3