Date: Mon, 05 Dec 2011 10:44:18 -0800 From: Jan Beich <jbeich@tormail.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/163085: [patch] benchmarks/unixbench: respect CC/CFLAGS Message-ID: <1RXdhp-000IYo-L6@internal.tormail.net> Resent-Message-ID: <201112051900.pB5J0R6P021507@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 163085 >Category: ports >Synopsis: [patch] benchmarks/unixbench: respect CC/CFLAGS >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Dec 05 19:00:26 UTC 2011 >Closed-Date: >Last-Modified: >Originator: Jan Beich >Release: FreeBSD 10.0-CURRENT amd64 >Organization: >Environment: >Description: >How-To-Repeat: http://pointyhat.freebsd.org/errorlogs/amd64-errorlogs/e.9-exp.20110723205754/unixbench-4.1.0_1.log >Fix: --- cc.diff begins here ---- Index: benchmarks/unixbench/files/patch-Makefile =================================================================== RCS file: /a/.csup/ports/benchmarks/unixbench/files/patch-Makefile,v retrieving revision 1.1 diff -u -p -r1.1 patch-Makefile --- benchmarks/unixbench/files/patch-Makefile 8 Jan 2005 22:10:44 -0000 1.1 +++ benchmarks/unixbench/files/patch-Makefile 5 Dec 2011 18:43:35 -0000 @@ -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 --- cc.diff ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1RXdhp-000IYo-L6>