summaryrefslogtreecommitdiff
path: root/sysutils/cpuburn/patches
diff options
context:
space:
mode:
authorabs <abs@pkgsrc.org>2002-09-17 17:02:30 +0000
committerabs <abs@pkgsrc.org>2002-09-17 17:02:30 +0000
commit957792d48dae03b703ec192f65553e45a14c282f (patch)
treeaeeb5c3086b683794b553e624bcbf5d56da88501 /sysutils/cpuburn/patches
parent8833111dc3283302336ba98725f50ae82ee30e5b (diff)
downloadpkgsrc-957792d48dae03b703ec192f65553e45a14c282f.tar.gz
Updated cpuburn to 1.4nb2
Nuke -nostdlib and play some define games to ensure we have a 'main' instead of '_start', so the binary includes the NetBSD ELF note and runs correctly.
Diffstat (limited to 'sysutils/cpuburn/patches')
-rw-r--r--sysutils/cpuburn/patches/patch-aa12
1 files changed, 7 insertions, 5 deletions
diff --git a/sysutils/cpuburn/patches/patch-aa b/sysutils/cpuburn/patches/patch-aa
index c1a4eb699a0..8094aeef033 100644
--- a/sysutils/cpuburn/patches/patch-aa
+++ b/sysutils/cpuburn/patches/patch-aa
@@ -1,16 +1,18 @@
-$NetBSD: patch-aa,v 1.1 2002/09/16 22:32:00 abs Exp $
+$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,10 @@
+@@ -1,3 +1,12 @@
+OPSYS!= uname -s
-+# On NetBSD crtbeginS.o includes the ELF note that tags the binary as native
++# On NetBSD -nostdlib will exclude the ELF note that tags binaries as native.
+.if (${OPSYS} == NetBSD)
-+EXTRALINK=/usr/lib/crtbeginS.o
++COMPILEFLAGS=-D_main=main -DWINDOWS
++.else
++COMPILEFLAGS=-nostdlib
+.endif
+
all : burnP5 burnP6 burnK6 burnK7 burnBX burnMMX
+
.S:
- gcc -s -nostdlib -o $@ $<
-+ gcc -s -nostdlib -o $@ $< ${EXTRALINK}
++ gcc -s ${COMPILEFLAGS} -o $@ $<