cifs-utils: moved to github
[openwrt/svn-archive/packages.git] / utils / bonnie++ / patches / 001-cross_compile_fix.patch
1 --- a/configure
2 +++ b/configure
3 @@ -4372,7 +4372,7 @@ if test "$cross_compiling" = yes; then
4 See \`config.log' for more details." >&5
5 echo "$as_me: error: cannot run test program while cross compiling
6 See \`config.log' for more details." >&2;}
7 - { (exit 1); exit 1; }; }
8 + { (exit 0); exit 0; }; }
9 else
10 cat >conftest.$ac_ext <<_ACEOF
11 /* confdefs.h. */
12 --- a/Makefile
13 +++ b/Makefile
14 @@ -1,5 +1,7 @@
15 EXES=bonnie++ zcav getc_putc getc_putc_helper
16 EXE=bon_csv2html generate_randfile
17 +TARGET_CXX=g++
18 +TARGET_LINK=g++
19
20 all: $(EXE) $(EXES)
21
22 @@ -10,8 +12,8 @@ eprefix=${prefix}
23 #MORE_WARNINGS=-Weffc++
24 WFLAGS=-Wall -W -Wshadow -Wpointer-arith -Wwrite-strings -pedantic -ffor-scope -Wcast-align -Wsign-compare -Wpointer-arith -Wwrite-strings -Wformat-security -Wswitch-enum -Winit-self $(MORE_WARNINGS)
25 CFLAGS=-O2 -DNDEBUG $(WFLAGS) $(MORECFLAGS)
26 -CXX=g++ $(CFLAGS)
27 -LINK=g++
28 +CXX=$(TARGET_CXX) $(CFLAGS)
29 +LINK=$(TARGET_LINK)
30 THREAD_LFLAGS=-lpthread
31
32 INSTALL=/usr/bin/install -c