This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: Ping [PATCH v2] Re: Link tests after GCC_NO_EXECUTABLES
- From: Paolo Bonzini <bonzini at gnu dot org>
- To: Rask Ingemann Lambertsen <rask at sygehus dot dk>
- Cc: Mark Mitchell <mark at codesourcery dot com>, GCC Patches <gcc-patches at gcc dot gnu dot org>, rsandifo at nildram dot co dot uk, fortran at gcc dot gnu dot org, java-patches at gcc dot gnu dot org
- Date: Sun, 30 Dec 2007 15:19:14 +0100
- Subject: Re: Ping [PATCH v2] Re: Link tests after GCC_NO_EXECUTABLES
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; bh=les86tx5u+LeP+CGgf5OqGpCKk7N7/wnE4kTacZ1Pp8=; b=KS4de1EM3Xm+gliQh9j9f2ZWHSgvU68D4b6CdSGS25vt+QwV/6+Nt8lZfCqanl3sbWnzcK6ZDjM3mH0pR8h0Ti8dpKgP6J4v9YgYwA+7Kw69VbPdLJs7CAdQRSFuZbO80ukQQdrQlkIMPYs6dcRyWVNmXHYrh1kkKYqui7d0am8=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:content-type:content-transfer-encoding:sender; b=RyW/hWJWNfIdGW2Y+Jo5u+aPczYF+sNnPVfHZKYrx/S2HgGs6+G4KjXI4IPYfNb36Uzes3DOzlSH2BDbHI2A4w3z/zTaKwjxhOhbairzyUdlgTxaBkykecvqXXgfYxALD3r51pC3bd0udA3dk8mYiG8dR7hiz+yQr++21gqb+ZQ=
- 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>
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