diff --git a/base/gcc/gcc.conf b/base/gcc/gcc.conf index 76466ff5f..bf2a071f4 100644 --- a/base/gcc/gcc.conf +++ b/base/gcc/gcc.conf @@ -115,6 +115,13 @@ if atstage toolchain; then var_append confopt " " "--disable-shared" var_append confopt " " "--disable-libssp" var_append confopt " " "--disable-libgomp" + + # use the native libraries we build in the toolchain directory + var_append extraconfopt ' ' '--with-gmp=$root' + var_append extraconfopt ' ' '--with-mpfr=$root --with-mpfr-lib=$root/$libdir' + var_append extraconfopt ' ' '--with-ppl=$root' + var_append extraconfopt ' ' '--with-cloog=$root' + export LDFLAGS="-Wl,-rpath,${root}${libdir}" fi if ! atstage native; then