[PATCH] libgfortran: fix error: Link tests are not allowed after GCC_NO_EXECUTABLES
Richard Guenther
rguenther@suse.de
Mon Sep 22 13:40:00 GMT 2008
On Mon, 22 Sep 2008, Tobias Burnus wrote:
> Richard Guenther wrote:
> > By just copying over what libssp does. Is this the correct approach?
> > Ok for trunk/branch?
> >
> I don't know whether it is the correct approach, but it looks
> reasonable. Thus:
>
> OK and thanks for fixing it.
It get's me further, but AC_LIBTOOL_DLOPEN fails the same way if
you configure a cross to spu with --disable-shared, so I'm in addition
now trying
*************** AC_PROG_INSTALL
*** 158,164 ****
--- 164,172 ----
# Configure libtool
#AC_MSG_NOTICE([====== Starting libtool configuration])
+ if x$enable_shared = xyes; then
AC_LIBTOOL_DLOPEN
+ fi
AM_PROG_LIBTOOL
AC_SUBST(enable_shared)
AC_SUBST(enable_static)
Richard.
>
> Tobias
>
> > 2008-09-22 Richard Guenther <rguenther@suse.de>
> >
> > * configure.ac: Guard link test properly.
> > * configure: Regenerate.
> >
> > Index: libgfortran/configure.ac
> > ===================================================================
> > *** libgfortran/configure.ac (revision 140514)
> > --- libgfortran/configure.ac (working copy)
> > *************** FOO_1.0 {
> > *** 144,150 ****
> > EOF
> > save_LDFLAGS="$LDFLAGS"
> > LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
> > ! AC_TRY_LINK([int foo;],[],[gfortran_use_symver=yes],[gfortran_use_symver=no])
> > LDFLAGS="$save_LDFLAGS"
> > AC_MSG_RESULT($gfortran_use_symver)
> > AM_CONDITIONAL(LIBGFOR_USE_SYMVER, [test "x$gfortran_use_symver" = xyes])
> > --- 144,156 ----
> > EOF
> > save_LDFLAGS="$LDFLAGS"
> > LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
> > ! 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
> > LDFLAGS="$save_LDFLAGS"
> > AC_MSG_RESULT($gfortran_use_symver)
> > AM_CONDITIONAL(LIBGFOR_USE_SYMVER, [test "x$gfortran_use_symver" = xyes])
> >
> >
>
>
--
Richard Guenther <rguenther@suse.de>
Novell / SUSE Labs
SUSE LINUX Products GmbH - Nuernberg - AG Nuernberg - HRB 16746 - GF: Markus Rex
More information about the Fortran
mailing list