pkgsrc/benchmarks/bytebench/patches/patch-ab
2013-10-27 20:30:01 +00:00

34 lines
971 B
Text

$NetBSD: patch-ab,v 1.5 2013/10/27 20:30:01 joerg Exp $
--- Makefile.orig 1999-07-28 22:05:02.000000000 +0000
+++ Makefile
@@ -31,8 +31,8 @@
ID="@(#)Makefile:3.9 -- 5/15/91 19:30:15";
SHELL = /bin/sh
#HZ = ???? #(read from environment)
-CFLAGS = -DTIME
-CC=gcc
+CFLAGS += -DTIME
+#CC=gcc
## For Linux 486/Pentium, GCC 2.7.x and 2.8.x
#OPTON = -O2 -fomit-frame-pointer -fforce-addr -fforce-mem -ffast-math \
@@ -46,6 +46,9 @@ CC=gcc
## For Solaris 2, or general-purpose GCC 2.7.x
OPTON = -O2 -fomit-frame-pointer -fforce-addr -fforce-mem -ffast-math -Wall
+## For Solaris 2, or general-purpose GCC 4.5
+OPTON = -O2 -fomit-frame-pointer -ffast-math -Wall
+
## Very generic
#OPTON = -O
@@ -54,7 +57,7 @@ OPTON = -O2 -fomit-frame-pointer -fforce
#CFLAGS = -DTIME -std1 -verbose -w0
## generic gcc CFLAGS. -DTIME must be included
-CFLAGS = -DTIME -Wall -pedantic -ansi
+#CFLAGS = -DTIME -Wall -pedantic -ansi
# local directories
PROGDIR = ./pgms