--with-host-libstdcxx doesn't work as expected

View: New views
2 Messages — Rating Filter:   Alert me  

--with-host-libstdcxx doesn't work as expected

by Rainer Emrich-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

At least on cygwin --with-host-libstdcxx doesn't work as expected.

../gcc/configure --with-host-libstdcxx=-lstdc++
gives
POSTSTAGE1_LIBS =
in the top Makefile.

../gcc/configure --with-boot-libs=-lstdc++
gives
POSTSTAGE1_LIBS = -lstdc++
in the top Makefile.

The docs say:

- --with-boot-libs=libs
    This option may be used to set libraries to be used when linking stage 2 and
later when bootstrapping GCC. The default is the argument to
- --with-host-libstdcxx, if specified.

So, that's not true.

Rainer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkpSNpkACgkQoUhjsh59BL5PSgCfXStHvaGmgo42X7EDhfP1hSuK
ZakAoJNE08cGZ3jeMODIZ2D2SsOtujBc
=T10u
-----END PGP SIGNATURE-----

Re: --with-host-libstdcxx doesn't work as expected

by Ian Lance Taylor-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Rainer Emrich <rainer@...> writes:

> At least on cygwin --with-host-libstdcxx doesn't work as expected.
>
> ../gcc/configure --with-host-libstdcxx=-lstdc++
> gives
> POSTSTAGE1_LIBS =
> in the top Makefile.
>
> ../gcc/configure --with-boot-libs=-lstdc++
> gives
> POSTSTAGE1_LIBS = -lstdc++
> in the top Makefile.
>
> The docs say:
>
> --with-boot-libs=libs
>     This option may be used to set libraries to be used when linking stage 2 and
> later when bootstrapping GCC. The default is the argument to
> --with-host-libstdcxx, if specified.
>
> So, that's not true.
Sorry about that.  There was a missing comma in configure.ac.  Fixed as
follows (also fixed indentation).  Committed as obvious.

Ian


2009-07-06  Ian Lance Taylor  <iant@...>

        * configure.ac: Add missing comma in AC_ARG_WITH(boot-libs).
        * configure: Rebuild.



Index: configure.ac
===================================================================
--- configure.ac (revision 149291)
+++ configure.ac (working copy)
@@ -1468,11 +1468,11 @@ AC_SUBST(poststage1_ldflags)
 # Libraries to use for stage2 and later builds.  This defaults to the
 # argument passed to --with-host-libstdcxx.
 AC_ARG_WITH(boot-libs,
-[  --with-boot-libs=LIBS     Libraries for stage2 and later]
+[  --with-boot-libs=LIBS     Libraries for stage2 and later],
 [if test "$withval" = "no" -o "$withval" = "yes"; then
    poststage1_libs=
  else
-  poststage1_libs=$withval
+   poststage1_libs=$withval
  fi],
 [poststage1_libs=$with_host_libstdcxx])
 AC_SUBST(poststage1_libs)