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"
8 RANLIB
=mipsel-linux-ranlib
9 STRIP
=mipsel-linux-STRIP
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 \
24 --with-zlib-dir="$TOP/zlib/staged" \
25 ac_cv_c_stack_direction
=-1
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'
34 make DESTDIR
=$PREFIX install