--- a/package/develop/gcc/gcc.conf +++ b/package/develop/gcc/gcc.conf @@ -109,14 +109,29 @@ if atstage toolchain; then export LDFLAGS="-Wl,-rpath,${root}${libdir}" fi +libstdcpp_build() { + mkdir libstdc++; cd libstdc++ + configscript="../libstdc++-v3/configure" + + eval_config_command $confopt + eval $MAKE $makeopt + eval $MAKE $makeinstopt + + cd .. + configscript=../configure +} + if atstage cross; then # historically we did not had to explicitly specifiy the target for canadian # cross, since gcc-4.3 we have to: var_append confopt ' ' '--target=$arch_target' + + hook_add preconf 7 "libstdcpp_build" fi if ! atstage native; then - var_append confopt " " "--enable-languages=c,c++ --disable-libmudflap" + var_append confopt " " "--enable-languages=c,c++ --disable-libmudflap --disable-ssp --disable-libsanitizer" + var_append confopt " " "--disable-libquadmath --disable-decimal-float --disable-libitm --disable-libcilkrts" fi # later, if we support multiple GCC again, pass this to the non-default ones: