This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


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

PATCH to build tinfo.o, etc., with CXXFLAGS



Doing a `make CXXFLAGS="-f<something>"' at the top-level works fine,
except for the routines that are placed into libgcc.a.  CXXFLAGS
should be used there, too, I think.

-- 
Mark Mitchell 			mark@markmitchell.com
Mark Mitchell Consulting	http://www.markmitchell.com

1998-09-16  Mark Mitchell  <mark@markmitchell.com>

	* Make-lang.in (tinfo.o): Use CXXFLAGS when compiling.
	(tinfo2.o): Likewise.
	(exception.o): Likewise.
	(new.o): Likewise.
	(opnew.o): Likewise.
	(opnewnt.o): Likewise.
	(opvnew.o): Likewise.
	(opvnewnt.o): Likewise.
	(opdel.o): Likewise.
	(opdelnt.o): Likewise.
	(opvdel.o): Likewise.
	(opvdelnt.o): Likewise.

Index: Make-lang.in
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/cp/Make-lang.in,v
retrieving revision 1.19
diff -c -p -r1.19 Make-lang.in
*** Make-lang.in	1998/09/07 14:24:55	1.19
--- Make-lang.in	1998/09/16 16:13:54
*************** c++.dvi:
*** 140,179 ****
  
  # C++ language-support library pieces for libgcc.
  tinfo.o: cc1plus$(exeext) $(srcdir)/cp/tinfo.cc
! 	$(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) $(INCLUDES) \
  	  -c $(srcdir)/cp/tinfo.cc
  tinfo2.o: cc1plus$(exeext) $(srcdir)/cp/tinfo2.cc
! 	$(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) $(INCLUDES) \
  	  -c $(srcdir)/cp/tinfo2.cc
  exception.o: cc1plus$(exeext) $(srcdir)/cp/exception.cc
! 	$(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) $(INCLUDES) \
  	  -c -fexceptions $(srcdir)/cp/exception.cc
  new.o: cc1plus$(exeext) $(srcdir)/cp/new.cc
! 	$(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) $(INCLUDES) \
  	  -c $(srcdir)/cp/new.cc
  opnew.o: cc1plus$(exeext) $(srcdir)/cp/new1.cc
! 	$(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) $(INCLUDES) \
  	  -c $(srcdir)/cp/new1.cc -DL_op_new -o opnew.o
  opnewnt.o: cc1plus$(exeext) $(srcdir)/cp/new1.cc
! 	$(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) $(INCLUDES) \
  	  -c $(srcdir)/cp/new1.cc -DL_op_newnt -o opnewnt.o
  opvnew.o: cc1plus$(exeext) $(srcdir)/cp/new2.cc
! 	$(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) $(INCLUDES) \
  	  -c $(srcdir)/cp/new2.cc -DL_op_vnew -o opvnew.o
  opvnewnt.o: cc1plus$(exeext) $(srcdir)/cp/new2.cc
! 	$(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) $(INCLUDES) \
  	  -c $(srcdir)/cp/new2.cc -DL_op_vnewnt -o opvnewnt.o
  opdel.o: cc1plus$(exeext) $(srcdir)/cp/new2.cc
! 	$(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) $(INCLUDES) \
  	  -c $(srcdir)/cp/new2.cc -DL_op_delete -o opdel.o
  opdelnt.o: cc1plus$(exeext) $(srcdir)/cp/new2.cc
! 	$(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) $(INCLUDES) \
  	  -c $(srcdir)/cp/new2.cc -DL_op_delnt -o opdelnt.o
  opvdel.o: cc1plus$(exeext) $(srcdir)/cp/new2.cc
! 	$(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) $(INCLUDES) \
  	  -c $(srcdir)/cp/new2.cc -DL_op_vdel -o opvdel.o
  opvdelnt.o: cc1plus$(exeext) $(srcdir)/cp/new2.cc
! 	$(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) $(INCLUDES) \
  	  -c $(srcdir)/cp/new2.cc -DL_op_vdelnt -o opvdelnt.o
  
  # We want to update cplib2.txt if any of the source files change...
--- 140,179 ----
  
  # C++ language-support library pieces for libgcc.
  tinfo.o: cc1plus$(exeext) $(srcdir)/cp/tinfo.cc
! 	$(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) $(CXXFLAGS) $(INCLUDES) \
  	  -c $(srcdir)/cp/tinfo.cc
  tinfo2.o: cc1plus$(exeext) $(srcdir)/cp/tinfo2.cc
! 	$(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) $(CXXFLAGS) $(INCLUDES) \
  	  -c $(srcdir)/cp/tinfo2.cc
  exception.o: cc1plus$(exeext) $(srcdir)/cp/exception.cc
! 	$(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) $(CXXFLAGS) $(INCLUDES) \
  	  -c -fexceptions $(srcdir)/cp/exception.cc
  new.o: cc1plus$(exeext) $(srcdir)/cp/new.cc
! 	$(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) $(CXXFLAGS) $(INCLUDES) \
  	  -c $(srcdir)/cp/new.cc
  opnew.o: cc1plus$(exeext) $(srcdir)/cp/new1.cc
! 	$(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) $(CXXFLAGS) $(INCLUDES) \
  	  -c $(srcdir)/cp/new1.cc -DL_op_new -o opnew.o
  opnewnt.o: cc1plus$(exeext) $(srcdir)/cp/new1.cc
! 	$(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) $(CXXFLAGS) $(INCLUDES) \
  	  -c $(srcdir)/cp/new1.cc -DL_op_newnt -o opnewnt.o
  opvnew.o: cc1plus$(exeext) $(srcdir)/cp/new2.cc
! 	$(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) $(CXXFLAGS) $(INCLUDES) \
  	  -c $(srcdir)/cp/new2.cc -DL_op_vnew -o opvnew.o
  opvnewnt.o: cc1plus$(exeext) $(srcdir)/cp/new2.cc
! 	$(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) $(CXXFLAGS) $(INCLUDES) \
  	  -c $(srcdir)/cp/new2.cc -DL_op_vnewnt -o opvnewnt.o
  opdel.o: cc1plus$(exeext) $(srcdir)/cp/new2.cc
! 	$(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) $(CXXFLAGS) $(INCLUDES) \
  	  -c $(srcdir)/cp/new2.cc -DL_op_delete -o opdel.o
  opdelnt.o: cc1plus$(exeext) $(srcdir)/cp/new2.cc
! 	$(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) $(CXXFLAGS) $(INCLUDES) \
  	  -c $(srcdir)/cp/new2.cc -DL_op_delnt -o opdelnt.o
  opvdel.o: cc1plus$(exeext) $(srcdir)/cp/new2.cc
! 	$(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) $(CXXFLAGS) $(INCLUDES) \
  	  -c $(srcdir)/cp/new2.cc -DL_op_vdel -o opvdel.o
  opvdelnt.o: cc1plus$(exeext) $(srcdir)/cp/new2.cc
! 	$(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) $(CXXFLAGS) $(INCLUDES) \
  	  -c $(srcdir)/cp/new2.cc -DL_op_vdelnt -o opvdelnt.o
  
  # We want to update cplib2.txt if any of the source files change...


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