Created
November 28, 2014 19:47
-
-
Save iedemam/69127c28890643e32eda to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- 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