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
31 export CFLAGS="$flags"
32 export CXXFLAGS="$flags"
33 export GCJFLAGS="$flags"
34 time nice "$configure" $customss --enable-debug "$@"