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


Benjamin Kosnik wrote:
> Step 2: Rebuild libstdc++-v3 with the new flags.
> This should be automated, and easier to do, but it is not.

I would recommend a much easier procedure without the need for playing
with automake and so:

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

and do the make
that will do the trick.
It seems, as if this would also easily be integrated into configure. 

> 5) cp this new libgcc.a into your EXE_PREFIX_DIRECTORY, and rename the old one.
> For me, this means that
> 
> /mnt/hd/bliss/H-x86-gcc-2_95/lib/gcc-lib/i686-pc-linux-gnu/2.95
> 
> now has:
> 
> lrwxrwxrwx   1 bkoz     bkoz           12 Jul 28 14:52 libgcc.a -> libgcc.a.new
> -rw-rw-r--   1 bkoz     bkoz       734588 Jul 28 14:51 libgcc.a.new
> -rw-r--r--   1 bkoz     bkoz       772410 Jul 27 23:05 libgcc.a.old
> 
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++.

also mention that one needs to put the libgcc.a into (builddir)/src/.libs
for make check

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

Alfred

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