Subject: pkg/22856: Fix benchmarks/hint where cc != gcc
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <jonathan@perkin.org.uk>
List: netbsd-bugs
Date: 09/19/2003 14:07:25
>Number: 22856
>Category: pkg
>Synopsis: Fix benchmarks/hint where cc != gcc
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Sep 19 14:08:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator: Jonathan Perkin
>Release: N/A
>Organization:
British Broadcasting Corporation
>Environment:
SunOS build1 5.9 Generic_112233-01 sun4u sparc SUNW,UltraSPARC-IIi-cEngine
>Description:
The usual hardcoding of cc(1) in pkg Makefile, breaking systems which
expect it to be gcc...
>How-To-Repeat:
===> Building for hint.serial-98.06.12
cc -O2 hint.c hkernel.c -Dunix -DDOUBLE -DIINT -o DOUBLE -lm
cc: Warning: option -2 passed to ld
hint.c:
hkernel.c:
/usr/ccs/bin/ld: illegal option -- 2
usage: ld [-6:abc:d:e:f:h:il:mo:p:rstu:z:B:CD:F:GI:L:M:N:P:Q:R:S:VY:?] file(s)
>Fix:
http://www.perkin.org.uk/projects/netbsd/hint.diff
--- /dev/null Fri Sep 19 15:01:47 2003
+++ patches/patch-ac Fri Sep 19 15:01:38 2003
@@ -1,0 +1,17 @@
+$NetBSD$
+
+--- Makefile.orig Thu Jun 4 00:27:22 1998
++++ Makefile Fri Sep 19 15:00:55 2003
+@@ -45,10 +45,10 @@
+ INCLUDES =
+ TARGET = DOUBLE INT FLOAT SHORT LONGLONG
+
+-CC = cc
++#CC = cc
+ KERN_CFLAGS=
+ DRIV_CFLAGS=
+-CFLAGS = -O2
++#CFLAGS = -O2
+ #
+ #
+ LFLAGS = -lm
Index: distinfo
===================================================================
RCS file: /cvsroot/pkgsrc/benchmarks/hint/distinfo,v
retrieving revision 1.2
diff -u -r1.2 distinfo
--- distinfo 2001/04/20 09:13:25 1.2
+++ distinfo 2003/09/19 14:02:50
@@ -4,3 +4,4 @@
Size (hint_unix_serial.tar) = 71680 bytes
SHA1 (patch-aa) = ed3d3e4cc76df2e092627b4b4d6ff68419a94b07
SHA1 (patch-ab) = 64be507d80018a95bbb615d1db83b3331633efa3
+SHA1 (patch-ac) = aca05bc3024cd42dbb8b6dc9006c771948b04838
>Release-Note:
>Audit-Trail:
>Unformatted: