Patch to fix problem in building libgcc2

Michael Meissner meissner@cygnus.com
Thu Aug 12 12:00:00 GMT 1999


I ran into the problem recently for a new port that GCC was not using
the newly built assembler, but instead using the installed assembler
and we had a flag day where the new assembler was not compatible with
the old assembler.

1999-08-12  Michael Meissner  <meissner@cygnus.com>

	* Makefile.in (GCC_FOR_TARGET): Move -B./ after the tooldir -B so
	that if you are building via a one-tree build, ./as is searched
	for before the installed location.  This is needed in case you
	change the assembler syntax during development.

*** gcc/Makefile.in.~1~	Thu Aug 12 14:00:20 1999
--- gcc/Makefile.in	Thu Aug 12 14:55:16 1999
*************** INSTALL_ASSERT_H = install-assert-h
*** 166,172 ****
  # The GCC to use for compiling libgcc2.a, enquire, and libgcc1-test.
  # Usually the one we just built.
  # Don't use this as a dependency--use $(GCC_PASSES) or $(GCC_PARTS).
! GCC_FOR_TARGET = ./xgcc -B./ -B$(build_tooldir)/bin/ -I$(build_tooldir)/include
  
  # This is used instead of ALL_CFLAGS when compiling with GCC_FOR_TARGET.
  # It omits XCFLAGS, and specifies -B./.
--- 166,172 ----
  # The GCC to use for compiling libgcc2.a, enquire, and libgcc1-test.
  # Usually the one we just built.
  # Don't use this as a dependency--use $(GCC_PASSES) or $(GCC_PARTS).
! GCC_FOR_TARGET = ./xgcc -B$(build_tooldir)/bin/ -B./ -I$(build_tooldir)/include
  
  # This is used instead of ALL_CFLAGS when compiling with GCC_FOR_TARGET.
  # It omits XCFLAGS, and specifies -B./.

-- 
Michael Meissner, Cygnus Solutions
PMB 198, 174 Littleton Road #3, Westford, Massachusetts 01886
email: meissner@cygnus.com	phone: 978-486-9304	fax: 978-692-4482


More information about the Gcc-patches mailing list