summaryrefslogtreecommitdiff
path: root/sysutils/cpuburn/patches/patch-aa
blob: 8094aeef033c4294449947232db7a2edb16a5e0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$NetBSD: patch-aa,v 1.2 2002/09/17 17:02:30 abs Exp $

--- Makefile.orig	Sat Jun 16 04:39:17 2001
+++ Makefile
@@ -1,3 +1,12 @@
+OPSYS!=	uname -s
+# On NetBSD -nostdlib will exclude the ELF note that tags binaries as native.
+.if (${OPSYS} == NetBSD)
+COMPILEFLAGS=-D_main=main -DWINDOWS
+.else
+COMPILEFLAGS=-nostdlib
+.endif
+
 all : burnP5 burnP6 burnK6 burnK7 burnBX burnMMX
+
 .S:
-	gcc -s -nostdlib -o $@ $<
+	gcc -s ${COMPILEFLAGS} -o $@ $<