This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: --with-host-libstdcxx doesn't work as expected
- From: Ian Lance Taylor <iant at google dot com>
- To: Rainer Emrich <rainer at emrich-ebersheim dot de>
- Cc: gcc at gcc dot gnu dot org, gcc-patches at gcc dot gnu dot org
- Date: Mon, 06 Jul 2009 11:07:20 -0700
- Subject: Re: --with-host-libstdcxx doesn't work as expected
- References: <4A523699.2090304@emrich-ebersheim.de>
Rainer Emrich <rainer@emrich-ebersheim.de> 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@google.com>
* 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)