This is the mail archive of the libstdc++@gcc.gnu.org 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]
Other format: [Raw text]

[Patch] Allow SECTION_FLAGS to be overridden by EXTRA_CXX_FLAGS


The attached patch allows the configure switch:
--enable-cxx-flags='-fno-data-sections -fno-function-sections'
to work by reversing the order of @EXTRA_CXX_FLAGS@ @SECTION_FLAGS@

-fdata-sections and -ffunction-sections appear to offer no advantage
on mingw32 target but do make larger executeables.

Danny

ChangeLog:

2003-01-27  Danny Smith  <dannysmith@users.sourceforge.net>
 
	* src/Makefile.am (CONFIG_CXXFLAGS): Reverse order of
	@EXTRA_CXX_FLAGS@ @SECTION_FLAGS@.
	* libsupc++/Makefile.am (CONFIG_CXXFLAGS): Likewise.
	* src/Makefile.in: Regenerate.
	* libsupc++/Makefile.in: Regenerate.


Index: src/Makefile.am
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/src/Makefile.am,v
retrieving revision 1.117
diff -c -3 -p -r1.117 Makefile.am
*** src/Makefile.am	8 Jan 2003 19:43:09 -0000	1.117
--- src/Makefile.am	26 Jan 2003 22:56:59 -0000
*************** OPTIMIZE_CXXFLAGS = @OPTIMIZE_CXXFLAGS@
*** 52,58 ****
  # These bits are all figured out from configure. Look in acinclude.m4
  # or configure.in to see how they are set. See GLIBCPP_EXPORT_FLAGS
  CONFIG_CXXFLAGS = \
! 	@EXTRA_CXX_FLAGS@ @SECTION_FLAGS@
  
  # Warning flags to use.
  WARN_CXXFLAGS = \
--- 52,58 ----
  # These bits are all figured out from configure. Look in acinclude.m4
  # or configure.in to see how they are set. See GLIBCPP_EXPORT_FLAGS
  CONFIG_CXXFLAGS = \
! 	@SECTION_FLAGS@ @EXTRA_CXX_FLAGS@
  
  # Warning flags to use.
  WARN_CXXFLAGS = \
Index: src/Makefile.in
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/src/Makefile.in,v
retrieving revision 1.165
diff -c -3 -p -r1.165 Makefile.in
*** src/Makefile.in	8 Jan 2003 19:43:11 -0000	1.165
--- src/Makefile.in	26 Jan 2003 22:57:00 -0000
*************** OPTIMIZE_CXXFLAGS = @OPTIMIZE_CXXFLAGS@
*** 156,162 ****
  # These bits are all figured out from configure. Look in acinclude.m4
  # or configure.in to see how they are set. See GLIBCPP_EXPORT_FLAGS
  CONFIG_CXXFLAGS = \
! 	@EXTRA_CXX_FLAGS@ @SECTION_FLAGS@
  
  
  # Warning flags to use.
--- 156,162 ----
  # These bits are all figured out from configure. Look in acinclude.m4
  # or configure.in to see how they are set. See GLIBCPP_EXPORT_FLAGS
  CONFIG_CXXFLAGS = \
! 	 @SECTION_FLAGS@ @EXTRA_CXX_FLAGS@
  
  
  # Warning flags to use.
Index: libsupc++/Makefile.am
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/libsupc++/Makefile.am,v
retrieving revision 1.38
diff -c -3 -p -r1.38 Makefile.am
*** libsupc++/Makefile.am	26 Dec 2002 06:10:35 -0000	1.38
--- libsupc++/Makefile.am	26 Jan 2003 22:57:00 -0000
*************** OPTIMIZE_CXXFLAGS = @OPTIMIZE_CXXFLAGS@
*** 49,55 ****
  # or configure.in to see how they are set. See GLIBCPP_EXPORT_FLAGS
  # NB: DEBUGFLAGS have to be at the end so that -O2 can be overridden.
  CONFIG_CXXFLAGS = \
! 	@EXTRA_CXX_FLAGS@ @SECTION_FLAGS@
  
  # Warning flags to use.
  WARN_CXXFLAGS = \
--- 49,55 ----
  # or configure.in to see how they are set. See GLIBCPP_EXPORT_FLAGS
  # NB: DEBUGFLAGS have to be at the end so that -O2 can be overridden.
  CONFIG_CXXFLAGS = \
! 	@SECTION_FLAGS@ @EXTRA_CXX_FLAGS@
  
  # Warning flags to use.
  WARN_CXXFLAGS = \
Index: libsupc++/Makefile.in
===================================================================
RCS file: /cvs/gcc/gcc/libstdc++-v3/libsupc++/Makefile.in,v
retrieving revision 1.89
diff -c -3 -p -r1.89 Makefile.in
*** libsupc++/Makefile.in	6 Jan 2003 21:22:58 -0000	1.89
--- libsupc++/Makefile.in	26 Jan 2003 22:57:00 -0000
*************** OPTIMIZE_CXXFLAGS = @OPTIMIZE_CXXFLAGS@
*** 165,171 ****
  # or configure.in to see how they are set. See GLIBCPP_EXPORT_FLAGS
  # NB: DEBUGFLAGS have to be at the end so that -O2 can be overridden.
  CONFIG_CXXFLAGS = \
! 	@EXTRA_CXX_FLAGS@ @SECTION_FLAGS@
  
  
  # Warning flags to use.
--- 165,171 ----
  # or configure.in to see how they are set. See GLIBCPP_EXPORT_FLAGS
  # NB: DEBUGFLAGS have to be at the end so that -O2 can be overridden.
  CONFIG_CXXFLAGS = \
! 	 @SECTION_FLAGS@ @EXTRA_CXX_FLAGS@
  
  
  # Warning flags to use.

http://movies.yahoo.com.au - Yahoo! Movies
- What's on at your local cinema?


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