-#! /bin/sh
+#! /bin/bash
# $Id$
renice +19 -p $$; ionice -c3 -p $$
if [ "$1" = "-s" ];then
# -O0 is important to override GCC -O2.
debug="-O0 -s"
- ldflags=""
+ #ldflags=""
shift
continue
fi
if test -f `dirname $configure`/gcc/reload.c;then
werror="--disable-werror"
customm=""
- customss="--disable-static --enable-shared"
+ # --disable-static would fail on finding built libstdc++ due to -static-libstdc++.
+ customss=""
else
werror=""
fi
export CXXFLAGS_FOR_TARGET="$flags"
export LDFLAGS="$ldflags"
- time nice "$configure" $target $targets $customss --enable-debug --disable-sim $maintainer $werror --with-separate-debug-dir=/usr/lib/debug "$@"
+ time nice "$configure" $target $targets $customss --enable-debug --disable-sim --enable-gold --enable-plugins $maintainer $werror --with-separate-debug-dir=/usr/lib/debug "$@"
(ctags; test -d gdb && (cd gdb; ctags; cd testsuite; ctags; cd ../gdbserver; ctags)) &