From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6727 invoked by alias); 30 Dec 2007 14:19:30 -0000 Received: (qmail 6712 invoked by uid 22791); 30 Dec 2007 14:19:29 -0000 X-Spam-Check-By: sourceware.org Received: from fg-out-1718.google.com (HELO fg-out-1718.google.com) (72.14.220.157) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 30 Dec 2007 14:19:14 +0000 Received: by fg-out-1718.google.com with SMTP id d23so2266552fga.28 for ; Sun, 30 Dec 2007 06:19:11 -0800 (PST) Received: by 10.86.96.18 with SMTP id t18mr11205500fgb.13.1199024351726; Sun, 30 Dec 2007 06:19:11 -0800 (PST) Received: from scientist-2.lan ( [213.140.22.65]) by mx.google.com with ESMTPS id 4sm9181168fgg.4.2007.12.30.06.19.09 (version=SSLv3 cipher=RC4-MD5); Sun, 30 Dec 2007 06:19:10 -0800 (PST) Message-ID: <4777A8E2.4050208@gnu.org> Date: Sun, 30 Dec 2007 17:41:00 -0000 From: Paolo Bonzini User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031) MIME-Version: 1.0 To: Rask Ingemann Lambertsen CC: Mark Mitchell , GCC Patches , rsandifo@nildram.co.uk, fortran@gcc.gnu.org, java-patches@gcc.gnu.org Subject: Re: Ping [PATCH v2] Re: Link tests after GCC_NO_EXECUTABLES References: <47531F54.6010802@codesourcery.com> <20071205172224.GM17368@sygehus.dk> <47574456.1070108@codesourcery.com> <20071206175819.GO17368@sygehus.dk> <4758A3BD.5050102@codesourcery.com> <20071207153101.GR17368@sygehus.dk> <47599307.30409@codesourcery.com> <20071207214746.GB17368@sygehus.dk> <4759C1A4.4010908@codesourcery.com> <20071213222158.GV17368@sygehus.dk> <20071230115820.GR17368@sygehus.dk> In-Reply-To: <20071230115820.GR17368@sygehus.dk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2007-12/txt/msg01186.txt.bz2 Rask Ingemann Lambertsen wrote: > http://gcc.gnu.org/ml/gcc-patches/2007-12/msg00632.html Can you try using --cache-file= instead of "preloading" the cache file? Like this: # Pass --with-target-config if set. if test "x${with_target_config}" != "x" ; then target_configargs="--cache-file=${with_target_config} ${target_configargs}" fi > +if test x$gcc_no_link = xyes; then > + # If we cannot link, we cannot build shared libraries, so do not use > + # symbol versioning. > + gfortran_use_symver=no > +else > + AC_TRY_LINK([int foo;],[],[gfortran_use_symver=yes],[gfortran_use_symver=no]) > +fi Please change gfortran_use_symver to something like gfortran_cv_use_symver and use AC_CACHE_CHECK so that it can be overridden in the target cache file. > +# The AC_LIB_LTDL macro is broken: ${ac_cv_lib_dl_dlopen} isn't checked. > +# Temporarily permit link tests even if not working. > +save_gcc_no_link="$gcc_no_link"; gcc_no_link=no > AC_LIB_LTDL > +gcc_no_link="$save_gcc_no_link" Please change AC_LTDL_DLLIB in libjava/libltdl/acinclude.m4 instead. You should use AC_SEARCH_LIBS like this: ltdl_save_LIBS=$LIBS AC_SEARCH_LIBS([dlopen], [dl]) LIBS=$ltdl_save_LIBS case "$ac_cv_search_gethostbyname" in -ldl) LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"\ AC_DEFINE([HAVE_LIBDL], [1], [Define if you have the libdl library or equivalent.] ;; "none required") libltdl_cv_func_dlopen="yes" AC_DEFINE([HAVE_LIBDL], [1], [Define if you have the libdl library or equivalent.] ;; *) ... esac Thanks! Paolo