summaryrefslogtreecommitdiff
path: root/recipes/iozone3/iozone3/fileop-arm.patch
blob: 0e147cb999844949830e28cc26331f77eec94a72 (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
Index: current/makefile
===================================================================
--- current.orig/makefile	2006-10-14 21:42:36.000000000 +0200
+++ current/makefile	2006-10-14 21:40:02.000000000 +0200
@@ -190,9 +190,10 @@
 #
 # GNU 'C' compiler Linux build with threads, largefiles, async I/O
 #
-linux-arm:	iozone_linux-arm.o  libbif.o libasync.o
+linux-arm:	iozone_linux-arm.o  libbif.o libasync.o fileop_linux-arm.o
 	$(CC) -O3 $(LDFLAGS) iozone_linux-arm.o libbif.o libasync.o \
 		-lrt -lpthread -o iozone
+	$(CC)  -O3 -Dlinux fileop_linux-arm.o -o fileop
 
 #
 # GNU 'C' compiler Linux build with threads, largefiles, async I/O 
@@ -725,6 +726,12 @@
 	@echo ""
 	$(CC) -Wall -c -O3 $(CFLAGS) fileop.c -o fileop_linux-AMD64.o
 
+fileop_linux-arm.o:	fileop.c
+	@echo ""
+	@echo "Building fileop for Linux-arm"
+	@echo ""
+	$(CC) -Wall -c -O3 $(CFLAGS) fileop.c -o fileop_linux-arm.o
+
 fileop_windows.o: fileop.c
 	@echo ""
 	@echo "Building fileop for Windows"