Updates to Tomato RAF including NGINX && PHP
[tomato.git] / release / src / router / lzo / B / generic / build_gcc.sh
blob179d8c0fcb46d250bbda6b1dc0edc5ad2b567228
1 #! /bin/sh
2 # vi:ts=4:et
3 set -e
4 echo "// Using GNU C compiler."
5 echo "//"
7 test "X${top_srcdir}" = X && top_srcdir=`echo "$0" | sed 's,[^/]*$,,'`../..
8 UNAME_MACHINE=unknown
10 CC="gcc -fPIC"
11 CC="gcc -static"
12 CC="gcc"
13 CFLAGS="-Wall -O2 -fomit-frame-pointer"
15 # delete the next line to disable assembler support
16 UNAME_MACHINE=`(uname -m) 2>/dev/null` || UNAME_MACHINE=unknown
17 case $UNAME_MACHINE in
18 i[34567]86)
19 CC="$CC -m32"
20 CPPFLAGS="-DLZO_USE_ASM"
21 LZO_EXTRA_SOURCES=$top_srcdir/asm/i386/src_gas/*.S
23 esac
25 . $top_srcdir/B/generic/build.sh