|
|
|
@ -118,6 +118,23 @@ fi
|
|
|
|
|
# only C and C++ by default, and on every stage |
|
|
|
|
languages="c,c++" |
|
|
|
|
|
|
|
|
|
# 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 )" |
|
|
|
|
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 )" |
|
|
|
|
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 )" |
|
|
|
|
|
|
|
|
|
if atstage toolchain; then |
|
|
|
|
bindir="/$prefix/crosscc" |
|
|
|
|
|
|
|
|
@ -131,21 +148,6 @@ if atstage toolchain; then
|
|
|
|
|
var_append confopt " " "--disable-libquadmath" |
|
|
|
|
|
|
|
|
|
# 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 )" |
|
|
|
|
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 )" |
|
|
|
|
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 )" |
|
|
|
|
export LDFLAGS="-Wl,-rpath,${root}${libdir}" |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|