Skip to content

Instantly share code, notes, and snippets.

@iedemam
Created November 28, 2014 19:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iedemam/69127c28890643e32eda to your computer and use it in GitHub Desktop.
Save iedemam/69127c28890643e32eda to your computer and use it in GitHub Desktop.
--- 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:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment