This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: HOWTO-honor-std
- To: Alfred Minarik <a8601248@unet.univie.ac.at>
- Subject: Re: HOWTO-honor-std
- From: Benjamin Kosnik <bkoz@cygnus.com>
- Date: Fri, 30 Jul 1999 11:41:55 -0700 (PDT)
- cc: libstdc++@sourceware.cygnus.com
> configure as normal (using --prefix), then change the generated (builddir)/src/Makefile
> replace
> CXXFLAGS = -g -D_GNU_SOURCE -fno-implicit-templates
> by
> CXXFLAGS = -D_GLIBCPP_USE_NAMESPACES -fsquangle -fhonor-std -g -D_GNU_SOURCE -fno-implicit-templates
Yup. This will work as well.
> I simply put the new libgcc.a wherever libstdc++.so.3.0.0 ends up
> and the linker will pick the right one depending on -L flag for libstdc++.
This is a superior solution, I agree.
> ps: I tried automake 1.4, but only got:
> libio/Makefile.am:48: warning: automake does not support conditional definition of LIBIO_SRCS in EXTRA_DIST
> libio/Makefile.am:48: warning: automake does not support conditional definition of STDIO_WRAP_SRCS in EXTRA_DIST
> automake: src/Makefile.am: not supported: source file `$(top_builddir)/src/limitsMEMBERS.cc' is in subdirectory
Looks like you are trying this in ./libstdc++/libio. You need to run
autoheader;autoconf;automake
at the top level of the source distro, ie ./libstdc++
For the record, Martin v. Loewis's suggestion is also cool, and probably
safer in the long run, but requires a bit more dedication to the flags in
question.
It looks like the defaults will remain the same for the upcoming snapshot.
I'll be in favor of switching the CVS repository over to namespaces after
the snapshot is released, however.
thanks for the suggestions,
Benjamin