public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [Build, Patch, libquadmath] PR 46520   Do not call AC_CHECK_LIB for gcc_no_link
@ 2010-12-18 11:57 Tobias Burnus
  2010-12-19 13:00 ` Ralf Wildenhues
  0 siblings, 1 reply; 7+ messages in thread
From: Tobias Burnus @ 2010-12-18 11:57 UTC (permalink / raw)
  To: gcc patches

[-- Attachment #1: Type: text/plain, Size: 200 bytes --]

The title says all. I am not sure whether this patch is sufficient but 
it is the next step to fix the build. (The symbol-versioning check might 
still fail on bare irons.)

OK for the trunk?

Tobias

[-- Attachment #2: quad-build.diff --]
[-- Type: text/x-patch, Size: 858 bytes --]

2010-12-18  Tobias Burnus  <burnus@net-b.de>

	PR fortran/46520
	* configure.ac: Do not call AC_CHECK_LIB for gcc_no_link.
	* configure: Regenerate

diff --git a/libquadmath/configure.ac b/libquadmath/configure.ac
index 56b1fcb..603d2c1 100644
--- 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])

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2010-12-19 20:32 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-18 11:57 [Build, Patch, libquadmath] PR 46520 Do not call AC_CHECK_LIB for gcc_no_link Tobias Burnus
2010-12-19 13:00 ` Ralf Wildenhues
2010-12-19 17:30   ` Tobias Burnus
2010-12-19 19:17     ` Ralf Wildenhues
2010-12-19 19:37       ` Tobias Burnus
2010-12-19 20:32         ` Ralf Wildenhues
2010-12-20 10:19         ` Joseph S. Myers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).