blob: 96d36edd5f01babdda68bd81d219244a84bb3772 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
$NetBSD: patch-aa,v 1.2 2000/11/08 10:13:41 abs Exp $
--- src/Makefile.orig Fri Jul 31 12:55:18 1998
+++ src/Makefile
@@ -30,7 +30,7 @@
O= ../bin/unknown
D= ../doc
TRUE=/bin/true
-OS=`../scripts/os`
+OS=`../scripts/os.orig`
TARGET=`../scripts/target`
BINDIR=../bin/$(OS)
CONFIG=../bin/$(OS)/`../scripts/config`
@@ -130,7 +130,7 @@
bsd:
@if [ ! -d $(BINDIR) ]; then mkdir -p $(BINDIR); fi
- $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS) -Duint='unsigned int'" all
+ $(MAKE) CC="$(CC)" all
Wall:
@if [ ! -d $(BINDIR) ]; then mkdir -p $(BINDIR); fi
@@ -181,8 +181,13 @@
$O/flushdisk: flushdisk.c
$(COMPILE) -DMAIN -o $O/flushdisk flushdisk.c
+# Work around gcc codegen bug that results in infinite loop compiling mhz.c -O
$O/mhz: mhz.c timing.h stats.h bench.h $O/lmbench.a
+ifeq ($(MACHINE_ARCH),arm32)
+ $(CC) $(SYS5) $(CF) $(CPPFLAGS) $(LDFLAGS) -o $O/mhz mhz.c $O/lmbench.a $(LDLIBS) -lm
+else
$(COMPILE) -o $O/mhz mhz.c $O/lmbench.a $(LDLIBS) -lm
+endif
$O/lat_ctx: lat_ctx.c timing.h stats.h bench.h $O/lmbench.a
$(COMPILE) -o $O/lat_ctx lat_ctx.c $O/lmbench.a $(LDLIBS)
|