dnsmasq: stay close as possible to master branch
[tomato.git] / release / src-rt-6.x.4708 / router / mysql / makemips
blob80689dc51643a31039d008232aa9edd66eb9325d
1 #!/bin/sh
2 #TOP=/raid1/tomato/tomato.git.120AC/release.ar.wp.chs/src-rt/router
3 TOP=/root/test.ac/release/src-rt/router
4 CONFIGURE="./configure"
5 CC=mipsel-linux-cc
6 CXX=mipsel-linux-g++
7 AR=mipsel-linux-ar
8 RANLIB=mipsel-linux-ranlib
9 STRIP=mipsel-linux-STRIP
10 LD=mipsel-linux-ld
11 PREFIX=`pwd -P`/staged
13 CC=$CC CXX=$CXX AR=$AR RANLIB=$RANLIB STRIP=$STRIP LD=$LD \
14 CFLAGS="-O2 -Wall -fno-delete-null-pointer-checks -funit-at-a-time --param large-function-growth=800 --param max-inline-insns-single=3000 -ffunction-sections -fdata-sections -I$TOP/zlib -I$TOP/openssl/include -I$TOP/libncurses/include" \
15 CPPFLAGS="-O2 -Wall -fno-delete-null-pointer-checks -funit-at-a-time --param large-function-growth=800 --param max-inline-insns-single=3000 -ffunction-sections -fdata-sections -I$TOP/zlib -I$TOP/openssl/include -I$TOP/libncurses/include" \
16 LDFLAGS="-L$TOP/openssl -L$TOP/zlib/staged/lib -L$TOP/libncurses/lib -fPIC -EL" \
17 LIBS="-lcrypt -lz -lstdc++ -lssl -lcrypto -lncurses" \
18 $CONFIGURE --host=mipsel-linux --build=x86_64-linux-gnu --prefix=/usr \
19 --without-debug --without-docs --without-man --with-charset=utf8 --with-extra-charsets=ascii,latin1,gb2312,gbk \
20 --enable-shared --disable-static \
21 --without-mysqlmanager \
22 --with-pthread \
23 --with-ssl \
24 --with-zlib-dir="$TOP/zlib/staged" \
25 ac_cv_c_stack_direction=-1
27 tar xvfz .host.tgz
28 sed -i sql/Makefile -e 's/.\/gen_lex_hash$(EXEEXT) > $@-t/..\/host\/gen_lex_hash$(EXEEXT) > $@-t/g'
29 sed -i scripts/Makefile -e 's/$(top_builddir)\/scripts\/comp_sql$(EXEEXT)/$(top_builddir)\/host\/comp_sql$(EXEEXT)/g'
30 sed -i extra/Makefile -e 's/$(top_builddir)\/extra\/comp_err$(EXEEXT)/$(top_builddir)\/host\/comp_err$(EXEEXT)/g'
31 #sed -i include/my_config.h -e 's/\(#define STACK_DIRECTION\).*/#define STACK_DIRECTION -1/g'
33 make
34 make DESTDIR=$PREFIX install