From patchwork Sat Dec 18 10:17:16 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tobias Burnus X-Patchwork-Id: 76060 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 9002EB70AA for ; Sat, 18 Dec 2010 21:17:27 +1100 (EST) Received: (qmail 14034 invoked by alias); 18 Dec 2010 10:17:25 -0000 Received: (qmail 14023 invoked by uid 22791); 18 Dec 2010 10:17:24 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE X-Spam-Check-By: sourceware.org Received: from mx01.qsc.de (HELO mx01.qsc.de) (213.148.129.14) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 18 Dec 2010 10:17:19 +0000 Received: from [192.168.178.22] (port-92-204-118-252.dynamic.qsc.de [92.204.118.252]) by mx01.qsc.de (Postfix) with ESMTP id B3A223D071; Sat, 18 Dec 2010 11:17:16 +0100 (CET) Message-ID: <4D0C8A2C.3080209@net-b.de> Date: Sat, 18 Dec 2010 11:17:16 +0100 From: Tobias Burnus User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.2.13) Gecko/20101206 SUSE/3.1.7 Thunderbird/3.1.7 MIME-Version: 1.0 To: gcc patches Subject: [Build, Patch, libquadmath] PR 46520 Do not call AC_CHECK_LIB for gcc_no_link Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org 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 2010-12-18 Tobias Burnus 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])