aboutsummaryrefslogtreecommitdiffstats
path: root/benchmarks
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2012-01-04 07:35:34 +0800
committermiwi <miwi@FreeBSD.org>2012-01-04 07:35:34 +0800
commitd1abd0af9a8209d383fc7b8c8feb523910d7a6e3 (patch)
tree785524a5ee6fba3da7ef6452afdd2bea91ebd265 /benchmarks
parentc0ca88fe24efc0911fd8b344736d5b40b911fbb8 (diff)
downloadfreebsd-ports-gnome-d1abd0af9a8209d383fc7b8c8feb523910d7a6e3.tar.gz
freebsd-ports-gnome-d1abd0af9a8209d383fc7b8c8feb523910d7a6e3.tar.zst
freebsd-ports-gnome-d1abd0af9a8209d383fc7b8c8feb523910d7a6e3.zip
- Respect CC/CFLAGS
PR: 163085 Submitted by: Jan Beich <jbeich@tormail.net>
Diffstat (limited to 'benchmarks')
-rw-r--r--benchmarks/unixbench/files/patch-Makefile26
1 files changed, 20 insertions, 6 deletions
diff --git a/benchmarks/unixbench/files/patch-Makefile b/benchmarks/unixbench/files/patch-Makefile
index 3194d354c184..f3afb5317e64 100644
--- a/benchmarks/unixbench/files/patch-Makefile
+++ b/benchmarks/unixbench/files/patch-Makefile
@@ -1,18 +1,32 @@
--- Makefile.orig Sun Dec 19 01:29:33 2004
+++ Makefile Sun Dec 19 01:32:06 2004
-@@ -30,8 +30,9 @@
- ##############################################################################
+@@ -30,8 +30,6 @@
ID="@(#)Makefile:3.9 -- 5/15/91 19:30:15";
SHELL = /bin/sh
-#HZ = ???? #(read from environment)
-CFLAGS = -DTIME
+-CC=gcc
+HZ = 128
-+CFLAGS ?= -O -finline-functions -funrool-loops -fomit-frame-pointer
-+CFLAGS+=-DTIME
- CC=gcc
## For Linux 486/Pentium, GCC 2.7.x and 2.8.x
-@@ -60,8 +61,8 @@
+ #OPTON = -O2 -fomit-frame-pointer -fforce-addr -fforce-mem -ffast-math \
+@@ -44,7 +42,7 @@ CC=gcc
+ # -m386 -malign-loops=1 -malign-jumps=1 -malign-functions=1
+
+ ## For Solaris 2, or general-purpose GCC 2.7.x
+-OPTON = -O2 -fomit-frame-pointer -fforce-addr -fforce-mem -ffast-math -Wall
++#OPTON = -O2 -fomit-frame-pointer -fforce-addr -fforce-mem -ffast-math -Wall
+
+ ## Very generic
+ #OPTON = -O
+@@ -54,14 +52,14 @@ 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
SRCDIR = ./src
TESTDIR = ./testdir