From c507b1907ec46fca1ec477102e4db878fa9e7559 Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Mon, 30 Nov 2009 13:44:06 +0100 Subject: [PATCH] gcc: fix to help configure to use the native libraries of gmp, mpfr, ppl and cloog-ppl we build in the toolchain directory --- base/gcc/gcc.conf | 7 +++++++ 1 file changed, 7 insertions(+) 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