aboutsummaryrefslogtreecommitdiff
path: root/benchmarks/nbench/files
diff options
context:
space:
mode:
Diffstat (limited to 'benchmarks/nbench/files')
-rw-r--r--benchmarks/nbench/files/patch-aa6
-rw-r--r--benchmarks/nbench/files/patch-ac11
-rw-r--r--benchmarks/nbench/files/patch-ad15
3 files changed, 29 insertions, 3 deletions
diff --git a/benchmarks/nbench/files/patch-aa b/benchmarks/nbench/files/patch-aa
index e065dcf4b2c4..f7c039a96eb1 100644
--- a/benchmarks/nbench/files/patch-aa
+++ b/benchmarks/nbench/files/patch-aa
@@ -1,11 +1,11 @@
---- nbench1.h Thu Dec 11 20:54:46 1997
-+++ /home/andy/tmp/wrk/nbench1.h Wed Dec 17 08:28:11 1997
+--- nbench1.h.orig Thu Dec 11 20:54:46 1997
++++ nbench1.h Wed Dec 17 08:28:11 1997
@@ -352,7 +352,7 @@
** The Neural Net test requires an input data file.
** The name is specified here.
*/
-char *inpath="NNET.DAT";
-+char *inpath="/usr/local/share/nbench/NNET.DAT";
++char *inpath=DATADIR "NNET.DAT";
/*
** PROTOTYPES
diff --git a/benchmarks/nbench/files/patch-ac b/benchmarks/nbench/files/patch-ac
new file mode 100644
index 000000000000..c31eeaa16564
--- /dev/null
+++ b/benchmarks/nbench/files/patch-ac
@@ -0,0 +1,11 @@
+--- sysspec.h.orig Fri Dec 12 05:54:46 1997
++++ sysspec.h Tue Jul 25 02:30:29 2000
+@@ -33,7 +33,7 @@
+
+ #include "nmglobal.h"
+
+-#ifndef MAC
++#if !defined(MAC) && !defined(__STDC__)
+ #include <malloc.h>
+ #endif
+
diff --git a/benchmarks/nbench/files/patch-ad b/benchmarks/nbench/files/patch-ad
new file mode 100644
index 000000000000..01a8c8dcd411
--- /dev/null
+++ b/benchmarks/nbench/files/patch-ad
@@ -0,0 +1,15 @@
+--- Makefile.orig Fri Dec 12 05:54:46 1997
++++ Makefile Tue Jul 25 02:27:40 2000
+@@ -22,10 +22,10 @@
+ # you should leave -static in the CFLAGS so that your sysinfo can be
+ # compiled into the executable
+
+-CC = gcc
++CC ?= gcc
+
+ # generic options for gcc
+-CFLAGS = -s -static -Wall -O3
++CFLAGS += -static -DDATADIR=\"${PREFIX}/share/nbench/\"
+
+ # if your gcc lets you do it, then try this one
+ #CFLAGS = -s -static -Wall -O3 -fomit-frame-pointer -funroll-loops