summaryrefslogtreecommitdiff
path: root/system/nbench/nbench_cflags_pointer.patch
diff options
context:
space:
mode:
authorNiels Horn <niels.horn@gmail.com>2011-12-12 21:34:00 -0600
committerNiels Horn <niels.horn@slackbuilds.org>2011-12-18 00:07:47 -0200
commit11302d0f2c489542fe9952af5eadab13a2a4e620 (patch)
tree7f0a2d999344b4301875bb496b8118e817b43e69 /system/nbench/nbench_cflags_pointer.patch
parent7ebc1de42aec2506f674636092f248520941b4ca (diff)
downloadslackbuilds-11302d0f2c489542fe9952af5eadab13a2a4e620.tar.gz
system/nbench: Miscellaneous script cleanup
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'system/nbench/nbench_cflags_pointer.patch')
-rw-r--r--system/nbench/nbench_cflags_pointer.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/system/nbench/nbench_cflags_pointer.patch b/system/nbench/nbench_cflags_pointer.patch
new file mode 100644
index 0000000000..6bfd86e1c0
--- /dev/null
+++ b/system/nbench/nbench_cflags_pointer.patch
@@ -0,0 +1,20 @@
+--- nbench-byte-2.2.3/Makefile 2004-12-30 00:23:30.000000000 -0200
++++ nbench-byte-2.2.3_patched/Makefile 2011-03-17 10:31:07.000000000 -0300
+@@ -22,7 +22,7 @@
+ CC = gcc
+
+ # generic options for gcc
+-CFLAGS = -s -static -Wall -O3
++CFLAGS += -s -static -Wall -O3
+
+ # if your gcc lets you do it, then try this one
+ #CFLAGS = -s -static -Wall -O3 -fomit-frame-pointer -funroll-loops
+@@ -126,7 +126,7 @@
+ if [ "4" = `./pointer` ] ; then touch pointer.h ;\
+ else echo "#define LONG64" >pointer.h ; fi
+
+-misc.o: misc.h misc.c Makefile
++misc.o: misc.h misc.c pointer.h Makefile
+ $(CC) $(MACHINE) $(DEFINES) $(CFLAGS)\
+ -c misc.c
+