|
|
@ -75,7 +75,16 @@ hook_add preconf 5 "mkdir -p objdir; cd objdir" |
|
|
|
|
|
|
|
configscript="../configure" |
|
|
|
|
|
|
|
var_append confopt ' ' "--enable-__cxa_atexit" |
|
|
|
# See http://gcc.gnu.org/gcc-3.2/c++-abi.html |
|
|
|
# and http://www.codesourcery.com/cxx-abi/. |
|
|
|
if [ "$SDECFG_CROSSBUILD" = 1 ]; then |
|
|
|
# FIXME: stage 1 c++ packages fail if this is enabled |
|
|
|
var_append confopt ' ' "--disable-__cxa_atexit" |
|
|
|
elif [ "$arch_machine" != "i386" ]; then |
|
|
|
var_append confopt ' ' "--enable-__cxa_atexit" |
|
|
|
else |
|
|
|
var_append confopt ' ' "--disable-__cxa_atexit" |
|
|
|
fi |
|
|
|
|
|
|
|
# we might build a SVN or prereleases, disable checking |
|
|
|
var_append confopt ' ' '--disable-checking' |
|
|
@ -174,6 +183,19 @@ libstdcpp_build() { |
|
|
|
configscript=../configure |
|
|
|
} |
|
|
|
|
|
|
|
# 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 cross; then |
|
|
|
# for gcc versions 4.3 and upwards we have to explicitely specifiy the |
|
|
|
# target architecture at cross-compiling stage |
|
|
|