Hi! I'm trying to create a cross compiler with the master branch of glibc and trunk of gcc. And it seems to me that CFLAGS_FOR_TARGET and/or CXXFLAGS_FOR_TARGET is broken. My CFLAGS/CXXFLAGS is set to "-O2 -pipe -march=corei7" while CFLAGS_FOR_TARGET and CXXFLAGS_FOR_TARGET is "-O2 -pipe". Building GCC gives this: make[4]: Entering directory `/storage/home/solskogen/obj/_build/gcc.sparc-centix-linux-gnu.final/sparc-centix-linux-gnu/libstdc++-v3/libsupc++' /bin/sh ../libtool --tag CXX --tag disable-shared --mode=compile /home/solskogen/obj/_build/gcc.sparc-centix-linux-gnu.final/./gcc/xgcc -shared-libgcc -B/home/solskogen/obj/_build/gcc.sparc-centix-linux-gnu.final/./gcc -nostdinc++ -L/home/solskogen/obj/_build/gcc.sparc-centix-linux-gnu.final/sparc-centix-linux-gnu/libstdc++-v3/src -L/home/solskogen/obj/_build/gcc.sparc-centix-linux-gnu.final/sparc-centix-linux-gnu/libstdc++-v3/src/.libs -B/home/solskogen/obj/cross.tools/sparc-centix-linux-gnu/bin/ -B/home/solskogen/obj/cross.tools/sparc-centix-linux-gnu/lib/ -isystem /home/solskogen/obj/cross.tools/sparc-centix-linux-gnu/include -isystem /home/solskogen/obj/cross.tools/sparc-centix-linux-gnu/sys-include -I/home/solskogen/src/bin/gcc/libstdc++-v3/../libgcc -I/home/solskogen/obj/_build/gcc.sparc-centix-linux-gnu.final/sparc-centix-linux-gnu/libstdc++-v3/include/sparc-centix-linux-gnu -I/home/solskogen/obj/_build/gcc.sparc-centix-linux-gnu.final/sparc-centix-linux-gnu/libstdc++-v3/include -I/home/solskogen/src/bin/gcc/libstdc++-v3/libsupc++ -prefer-pic -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -frandom-seed=array_type_info.lo -O2 -pipe -march=corei7 -D_GNU_SOURCE -c -o array_type_info.lo /home/solskogen/src/bin/gcc/libstdc++-v3/libsupc++/array_type_info.cc libtool: compile: /home/solskogen/obj/_build/gcc.sparc-centix-linux-gnu.final/./gcc/xgcc -shared-libgcc -B/home/solskogen/obj/_build/gcc.sparc-centix-linux-gnu.final/./gcc -nostdinc++ -L/home/solskogen/obj/_build/gcc.sparc-centix-linux-gnu.final/sparc-centix-linux-gnu/libstdc++-v3/src -L/home/solskogen/obj/_build/gcc.sparc-centix-linux-gnu.final/sparc-centix-linux-gnu/libstdc++-v3/src/.libs -B/home/solskogen/obj/cross.tools/sparc-centix-linux-gnu/bin/ -B/home/solskogen/obj/cross.tools/sparc-centix-linux-gnu/lib/ -isystem /home/solskogen/obj/cross.tools/sparc-centix-linux-gnu/include -isystem /home/solskogen/obj/cross.tools/sparc-centix-linux-gnu/sys-include -I/home/solskogen/src/bin/gcc/libstdc++-v3/../libgcc -I/home/solskogen/obj/_build/gcc.sparc-centix-linux-gnu.final/sparc-centix-linux-gnu/libstdc++-v3/include/sparc-centix-linux-gnu -I/home/solskogen/obj/_build/gcc.sparc-centix-linux-gnu.final/sparc-centix-linux-gnu/libstdc++-v3/include -I/home/solskogen/src/bin/gcc/libstdc++-v3/libsupc++ -Wall -Wextra -Wwrite-strings -Wcast-qual -Wabi -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -frandom-seed=array_type_info.lo -O2 -pipe -march=corei7 -D_GNU_SOURCE -c /home/solskogen/src/bin/gcc/libstdc++-v3/libsupc++/array_type_info.cc xgcc: error: unrecognized command line option '-march=corei7' make[4]: *** [array_type_info.lo] Error 1 make[4]: Leaving directory `/storage/home/solskogen/obj/_build/gcc.sparc-centix-linux-gnu.final/sparc-centix-linux-gnu/libstdc++-v3/libsupc++' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/storage/home/solskogen/obj/_build/gcc.sparc-centix-linux-gnu.final/sparc-centix-linux-gnu/libstdc++-v3' make[2]: *** [all] Error 2 make[2]: Leaving directory `/storage/home/solskogen/obj/_build/gcc.sparc-centix-linux-gnu.final/sparc-centix-linux-gnu/libstdc++-v3' make[1]: *** [all-target-libstdc++-v3] Error 2 make[1]: Leaving directory `/storage/home/solskogen/obj/_build/gcc.sparc-centix-linux-gnu.final' make: *** [all] Error 2 [solskogen@cheer gcc.sparc-centix-linux-gnu.final]$ set | grep FLAG CFLAGS='-O2 -pipe -march=corei7' CFLAGS_FOR_TARGET='-O2 -pipe' CXXFLAGS='-O2 -pipe -march=corei7' CXXFLAGS_FOR_TARGET='-O2 -pipe' Since libstdc++ is a target library it should not pickup the "-march=corei7". -- chs,