http://gcc.gnu.org/bugzilla/show_bug.cgi?id=46520
Tobias Burnus <burnus at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|[4.6 Regression] |[4.6 Regression] |libquadmath: Build also |libquadmath: fails at link |with --enable-languages=c; |test on bare irons |fails with some cross | |targets | --- Comment #6 from Tobias Burnus <burnus at gcc dot gnu.org> 2010-12-14 20:19:20 UTC --- Current result for picochip-unknown-none: checking how to run the C preprocessor... [...] checking for sqrtl in -lm... configure: error: Link tests are not allowed after GCC_NO_EXECUTABLES. make[2]: *** [configure-target-libquadmath] Error 1 Draft patch - might be insufficient: --- a/libquadmath/configure.ac +++ b/libquadmath/configure.ac @@ -109,8 +109,10 @@ esac AC_SUBST(toolexecdir) AC_SUBST(toolexeclibdir) -AC_CHECK_LIB([m],[sqrtl],[AC_DEFINE([HAVE_SQRTL],[1],[libm includes sqrtl])]) -AC_CHECK_LIB([m],[cbrtl],[AC_DEFINE([HAVE_CBRTL],[1],[libm includes cbrtl])]) +if test x$gcc_no_link != xyes; then + AC_CHECK_LIB([m],[sqrtl],[AC_DEFINE([HAVE_SQRTL],[1],[libm includes sqrtl])]) + AC_CHECK_LIB([m],[cbrtl],[AC_DEFINE([HAVE_CBRTL],[1],[libm includes cbrtl])]) +fi # Check for symbol versioning (copied from libssp). AC_MSG_CHECKING([whether symbol versioning is supported])