ncftp: bump version to 3.2.6
[buildroot-gz.git] / package / iozone / 0001-targets.patch
blob258b960928791467065282b142e5e6e45b3365c9
1 Add new targets for iozone:
3 linux-noaio is for linux targets without AIO (use case: uClibc)
4 linux-noth is for linux target without threads or AIO
6 And make largefile support optional via CFLAGS.
8 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
10 diff -Nura iozone3_414.orig/src/current/makefile iozone3_414/src/current/makefile
11 --- iozone3_414.orig/src/current/makefile 2013-06-11 09:48:18.257837091 -0300
12 +++ iozone3_414/src/current/makefile 2013-06-11 13:05:56.338162144 -0300
13 @@ -166,10 +166,28 @@
14 # GNU 'C' compiler Linux build with threads, largefiles, async I/O
16 linux: iozone_linux.o libasync.o libbif.o fileop_linux.o pit_server.o
17 - $(CC) -O3 $(LDFLAGS) iozone_linux.o libasync.o libbif.o -lpthread \
18 + $(CC) $(CFLAGS) $(LDFLAGS) iozone_linux.o libasync.o libbif.o \
19 + -lpthread -lrt -o iozone
20 + $(CC) $(CFLAGS) -Dlinux fileop_linux.o -o fileop
21 + $(CC) $(CFLAGS) -Dlinux pit_server.o -o pit_server
24 +# GNU 'C' compiler Linux build with threads, largefiles
26 +linux-noaio: iozone_linux-noaio.o libbif.o fileop_linux.o pit_server.o
27 + $(CC) $(CFLAGS) $(LDFLAGS) iozone_linux-noaio.o libbif.o \
28 + -lpthread -lrt -o iozone
29 + $(CC) $(CFLAGS) -Dlinux fileop_linux.o -o fileop
30 + $(CC) $(CFLAGS) -Dlinux pit_server.o -o pit_server
33 +# GNU 'C' compiler Linux build with largefiles
35 +linux-noth: iozone_linux-noth.o libbif.o fileop_linux.o pit_server.o
36 + $(CC) $(CFLAGS) $(LDFLAGS) iozone_linux-noth.o libbif.o \
37 -lrt -o iozone
38 - $(CC) -O3 -Dlinux fileop_linux.o -o fileop
39 - $(CC) -O3 -Dlinux pit_server.o -o pit_server
40 + $(CC) $(CFLAGS) -Dlinux fileop_linux.o -o fileop
41 + $(CC) $(CFLAGS) -Dlinux pit_server.o -o pit_server
44 # GNU 'C' compiler Linux build for powerpc chip with threads, largefiles, async I/O
45 @@ -795,13 +813,33 @@
46 @echo ""
47 @echo "Building iozone for Linux"
48 @echo ""
49 - $(CC) -Wall -c -O3 -Dunix -DHAVE_ANSIC_C -DASYNC_IO -DHAVE_PREAD \
50 - -DSHARED_MEM -Dlinux -D_LARGEFILE64_SOURCE $(CFLAGS) iozone.c \
51 + $(CC) -Wall -c -Dunix -DHAVE_ANSIC_C -DASYNC_IO -DHAVE_PREAD \
52 + -DSHARED_MEM -Dlinux $(CFLAGS) iozone.c \
53 -DNAME='"linux"' -o iozone_linux.o
54 - $(CC) -Wall -c -O3 -Dunix -DHAVE_ANSIC_C -DASYNC_IO -D_LARGEFILE64_SOURCE \
55 + $(CC) -Wall -c -Dunix -DHAVE_ANSIC_C -DASYNC_IO \
56 + -DSHARED_MEM -Dlinux $(CFLAGS) libbif.c -o libbif.o
57 + $(CC) -Wall -c -Dunix -Dlinux -DHAVE_ANSIC_C -DASYNC_IO \
58 + $(CFLAGS) libasync.c -o libasync.o
60 +iozone_linux-noaio.o: iozone.c libbif.c
61 + @echo ""
62 + @echo "Building iozone for Linux no AIO"
63 + @echo ""
64 + $(CC) -Wall -c -Dunix -DHAVE_ANSIC_C -DHAVE_PREAD \
65 + -DSHARED_MEM -Dlinux $(CFLAGS) iozone.c \
66 + -DNAME='"linux"' -o iozone_linux-noaio.o
67 + $(CC) -Wall -c -Dunix -DHAVE_ANSIC_C \
68 + -DSHARED_MEM -Dlinux $(CFLAGS) libbif.c -o libbif.o
70 +iozone_linux-noth.o: iozone.c libbif.c
71 + @echo ""
72 + @echo "Building iozone for Linux with no threads"
73 + @echo ""
74 + $(CC) -Wall -c -Dunix -DHAVE_ANSIC_C -DNO_THREADS -DHAVE_PREAD \
75 + -DSHARED_MEM -Dlinux $(CFLAGS) iozone.c \
76 + -DNAME='"linux"' -o iozone_linux-noth.o
77 + $(CC) -Wall -c -Dunix -DHAVE_ANSIC_C -DNO_THREADS \
78 -DSHARED_MEM -Dlinux $(CFLAGS) libbif.c -o libbif.o
79 - $(CC) -Wall -c -O3 -Dunix -Dlinux -DHAVE_ANSIC_C -DASYNC_IO \
80 - -D_LARGEFILE64_SOURCE $(CFLAGS) libasync.c -o libasync.o
82 fileop_AIX.o: fileop.c
83 @echo ""
84 @@ -893,7 +931,7 @@
85 @echo ""
86 @echo "Building fileop for Linux"
87 @echo ""
88 - $(CC) -Wall -c -O3 $(CFLAGS) fileop.c -o fileop_linux.o
89 + $(CC) -Wall -c $(CFLAGS) fileop.c -o fileop_linux.o
91 fileop_openbsd.o: fileop.c
92 @echo ""