[PATCH] benchmarks/autobench didn't respect CFLAGS
Jens Rehsack
rehsack at liwing.de
Sun Nov 2 09:47:23 PST 2003
>Submitter-Id: current-users
>Originator: Jens Rehsack
>Organization: LiWing IT-Services
>Confidential: no
>Synopsis: [PATCH] benchmarks/autobench didn't respect CFLAGS
>Severity: non-critical
>Priority: low
>Category: ports
>Class: change-request
>Release: FreeBSD 5.1-CURRENT i386
>Environment:
System: FreeBSD statler 5.1-CURRENT FreeBSD 5.1-CURRENT #0: Tue Oct 21 09:54:47 GMT 2003 root at statler:/usr/obj/usr/src/sys/STATLER i386
>Description:
The web-bench benchmarks/autobench don't respect CFLAGS set in
/etc/make.conf. Attached shar contains a patch which solves
that.
>How-To-Repeat:
>Fix:
--- shar.patch-Makefile begins here ---
# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# benchmarks/autobench/files/
# benchmarks/autobench/files/patch-Makefile
#
echo c - benchmarks/autobench/files/
mkdir -p benchmarks/autobench/files/ > /dev/null 2>&1
echo x - benchmarks/autobench/files/patch-Makefile
sed 's/^X//' >benchmarks/autobench/files/patch-Makefile << 'END-of-benchmarks/autobench/files/patch-Makefile'
X--- Makefile.orig Sat Nov 1 17:15:35 2003
X+++ Makefile Sat Nov 1 17:16:01 2003
X@@ -20,9 +20,9 @@
X endif
X
X # Compiler & flags
X-CC=gcc
X-CFLAGS=-O2 -Wall
X-DEBUG_FLAGS=-Wall -g
X+CC?=gcc
X+CFLAGS?=-O2 -Wall
X+DEBUG_FLAGSi?=-Wall -g
X
X all: crfile sesslog
X
END-of-benchmarks/autobench/files/patch-Makefile
exit
--- shar.patch-Makefile ends here ---
More information about the freebsd-ports
mailing list