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]

[CVS gcc "gcc" patch] v2 + v3, --enable-libstdcxx-v3



2000-04-04  Benjamin Kosnik  <bkoz@cygnus.com>

	* Makefile.in: Add bits.
	* configure.in (--enable-libstdcxx-v3): Add bits for using
	libstdc++-v3 and turning on -fhonor-std as necessary. 
	* configure: Regenerate.

Index: Makefile.in
===================================================================
RCS file: /cvs/gcc/egcs/gcc/Makefile.in,v
retrieving revision 1.415
diff -u -p -c -p -r1.415 Makefile.in
*** Makefile.in	2000/04/05 00:32:45	1.415
--- Makefile.in	2000/04/05 08:23:05
*************** GCC_CFLAGS=$(INTERNAL_CFLAGS) $(X_CFLAGS
*** 171,176 ****
--- 171,179 ----
  # Specify the abi to use when building the c++ runtime
  GXX_ABI_FLAG=@GXX_ABI_FLAG@
  
+ # Specify flags for use when building libstdc++
+ LIBCXX_CPPFLAGS=@LIBCXX_CPPFLAGS@
+ 
  # Sed command to transform gcc to installed name.  Overwritten by configure.
  program_transform_name = @program_transform_name@
  program_transform_cross_name = s,^,$(target_alias)-,
Index: configure.in
===================================================================
RCS file: /cvs/gcc/egcs/gcc/configure.in,v
retrieving revision 1.351
diff -u -p -c -p -r1.351 configure.in
*** configure.in	2000/04/05 07:34:36	1.351
--- configure.in	2000/04/05 08:23:33
*************** echo "Building a new-abi g++ compiler."
*** 4601,4606 ****
--- 4601,4622 ----
  ])
  AC_SUBST(GXX_ABI_FLAG)
  
+ # Build a new-libstdc++ system (ie libstdc++-v3)
+ AC_MSG_CHECKING([for libstdc++ to install])
+ AC_ARG_ENABLE(libstdcxx-v3,
+ [  --enable-libstdcxx-v3 
+ 			  enable libstdc++-v3 for building and installation],
+   [enable_libstdcxx_v3=yes], [enable_libstdcxx_v3=no])
+ 
+ if test x$enable_libstdcxx_v3 = xyes; then
+   LIBCXX_CPPFLAGS="-fhonor-std"
+   AC_MSG_RESULT(v3)
+ else
+   LIBCXX_CPPFLAGS=
+   AC_MSG_RESULT(v2)
+ fi
+ AC_SUBST(LIBCXX_CPPFLAGS)
+ 
  # Make empty files to contain the specs and options for each language.
  # Then add #include lines to for a compiler that has specs and/or options.
  

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