@ -136,31 +136,6 @@ if [ "$SDECFG_LIBC" = 'glibc' ]; then
fi
fi
# build prerequisites
var_append extraconfopt ' ' "--with-gmp=$( pkgprefix -r gmp )"
var_append extraconfopt ' ' "--with-gmp-lib=$( pkgprefix -r libdir gmp )"
var_append extraconfopt ' ' "--with-gmp-include=$( pkgprefix -r includedir gmp )"
var_append extraconfopt ' ' "--with-mpfr=$( pkgprefix -r mpfr )"
var_append extraconfopt ' ' "--with-mpfr-lib=$( pkgprefix -r libdir mpfr )"
var_append extraconfopt ' ' "--with-mpfr-include=$( pkgprefix -r includedir mpfr )"
var_append extraconfopt ' ' "--with-mpc=$( pkgprefix -r libmpc )"
var_append extraconfopt ' ' "--with-mpc-lib=$( pkgprefix -r libdir libmpc )"
var_append extraconfopt ' ' "--with-mpc-include=$( pkgprefix -r includedir libmpc )"
# Graphite loop optimization
if pkginstalled -f cloog && pkginstalled -f ppl; then
# use the cloog-isl backend
var_append extraconfopt ' ' "--enable-cloog-backend=isl"
var_append extraconfopt ' ' "--with-cloog=$( pkgprefix -r cloog )"
var_append extraconfopt ' ' "--with-cloog-lib=$( pkgprefix -r libdir cloog )"
var_append extraconfopt ' ' "--with-cloog-include=$( pkgprefix -r includedir cloog )"
# even when using the cloog-isl backend ppl is still needed to build gcc
var_append extraconfopt ' ' "--with-ppl=$( pkgprefix -r ppl )"
var_append extraconfopt ' ' "--with-ppl-lib=$( pkgprefix -r libdir ppl )"
var_append extraconfopt ' ' "--with-ppl-include=$( pkgprefix -r includedir ppl )"
fi
if atstage toolchain; then
if atstage toolchain; then
bindir="/$prefix/crosscc"
bindir="/$prefix/crosscc"
@ -175,7 +150,32 @@ if atstage toolchain; then
var_append confopt " " "--disable-libitm"
var_append confopt " " "--disable-libitm"
# use the native libraries we build in the toolchain directory
# use the native libraries we build in the toolchain directory
var_append extraconfopt ' ' "--with-gmp=$( pkgprefix -r gmp )"
var_append extraconfopt ' ' "--with-gmp-lib=$( pkgprefix -r libdir gmp )"
var_append extraconfopt ' ' "--with-gmp-include=$( pkgprefix -r includedir gmp )"
var_append extraconfopt ' ' "--with-mpfr=$( pkgprefix -r mpfr )"
var_append extraconfopt ' ' "--with-mpfr-lib=$( pkgprefix -r libdir mpfr )"
var_append extraconfopt ' ' "--with-mpfr-include=$( pkgprefix -r includedir mpfr )"
var_append extraconfopt ' ' "--with-mpc=$( pkgprefix -r libmpc )"
var_append extraconfopt ' ' "--with-mpc-lib=$( pkgprefix -r libdir libmpc )"
var_append extraconfopt ' ' "--with-mpc-include=$( pkgprefix -r includedir libmpc )"
export LDFLAGS="-Wl,-rpath,${root}${libdir}"
export LDFLAGS="-Wl,-rpath,${root}${libdir}"
fi
# Graphite loop optimization
if pkginstalled -f cloog && pkginstalled -f ppl; then
# use the cloog-isl backend
var_append extraconfopt ' ' "--enable-cloog-backend=isl"
var_append extraconfopt ' ' "--with-cloog=$( pkgprefix -r cloog )"
var_append extraconfopt ' ' "--with-cloog-lib=$( pkgprefix -r libdir cloog )"
var_append extraconfopt ' ' "--with-cloog-include=$( pkgprefix -r includedir cloog )"
# even when using the cloog-isl backend ppl is still needed to build gcc
var_append extraconfopt ' ' "--with-ppl=$( pkgprefix -r ppl )"
var_append extraconfopt ' ' "--with-ppl-lib=$( pkgprefix -r libdir ppl )"
var_append extraconfopt ' ' "--with-ppl-include=$( pkgprefix -r includedir ppl )"
fi
fi
if atstage cross; then
if atstage cross; then