This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: HOWTO-honor-std


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]