Patchwork [gfortran/ssp/quadmath] symvers config tweaks

login
register
mail settings
Submitter Benjamin Kosnik
Date May 29, 2012, 9 p.m.
Message ID <20120529140040.5f3e77e0@adair>
Download mbox | patch
Permalink /patch/161804/
State New
Headers show

Comments

Benjamin Kosnik - May 29, 2012, 9 p.m.
As per  libstdc++/52700, this fixes the configure bits for
libgfortran/libssp/libquadmath. With these fixes, I believe all the
libs are safe for --enable-symvers=gnu* variants.

Super simple patches...

I intend to put this on the 4.7 branch as well.

tested x86/linux

-benjamin
Jakub Jelinek - May 30, 2012, 5:38 p.m.
On Tue, May 29, 2012 at 02:00:40PM -0700, Benjamin De Kosnik wrote:
> 
> As per  libstdc++/52700, this fixes the configure bits for
> libgfortran/libssp/libquadmath. With these fixes, I believe all the
> libs are safe for --enable-symvers=gnu* variants.
> 
> Super simple patches...
> 
> I intend to put this on the 4.7 branch as well.

Ok for trunk and 4.7.

3x
> 2012-05-29  Benjamin Kosnik  <bkoz@redhat.com>
> 
>         PR libstdc++/51007
>         * configure.ac: Allow gnu, gnu* variants for --enable-symvers argument.
>         * configure: Regenerated.

	Jakub

Patch

2012-05-29  Benjamin Kosnik  <bkoz@redhat.com>

        PR libstdc++/51007
        * configure.ac: Allow gnu, gnu* variants for --enable-symvers argument.
        * configure: Regenerated.

diff --git a/libgfortran/configure.ac b/libgfortran/configure.ac
index fc58a5c..97b337e 100644
--- a/libgfortran/configure.ac
+++ b/libgfortran/configure.ac
@@ -157,7 +157,7 @@  AS_HELP_STRING([--disable-symvers],
   [disable symbol versioning for libgfortran]),
 gfortran_use_symver=$enableval,
 gfortran_use_symver=yes)
-if test "x$gfortran_use_symver" = xyes; then
+if test "x$gfortran_use_symver" != xno; then
   save_LDFLAGS="$LDFLAGS"
   LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
   cat > conftest.map <<EOF