4 configure="./configure"
5 if [ "${1#*/configure}" != "$1" ];then
9 customss="--enable-static --disable-shared"
10 if [ "$1" = "--origss" ];then
19 "-ggdb2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4" \
20 "-ggdb2 -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions" \
23 if [ -z "$flags" ];then
25 echo >&2 "flags error"
28 gcc $flags -c errs1.c -o /dev/null && break
30 if gcc -m64 -c errs1.c -o /dev/null;then
34 export CFLAGS="$flags"
35 export CXXFLAGS="$flags"
36 export GCJFLAGS="$flags"
37 time nice "$configure" $customss --enable-debug "$@"