This is the mail archive of the 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]
Other format: [Raw text]

Re: PING: Build build programs in a build directory

Sorry if this has already been said, but...

Kelley Cook <> writes:
> 	* Create all object and executables files built
> 	with the build compiler in a build/ directory.

..this breaks bootstrap on mips-sgi-irix6.5.  The problem is that fixproto
is still looking for fix-header in the main gcc objdir, not in build/.

Is the patch below the right fix?  Bootstrapped & regression tested
on mips-sgi-irix6.5.

(And if it is the right fix, don't tell me it's obvious. ;)
Nothing makefile-related is obvious to me...)


	* (stmp-fixproto): Pass FIX_HEADER=build/... to fixproto.

RCS file: /cvs/gcc/gcc/gcc/,v
retrieving revision 1.1404
diff -c -p -F^\([(a-zA-Z0-9_]\|#define\) -r1.1404
***	29 Sep 2004 09:47:41 -0000	1.1404
---	30 Sep 2004 07:07:56 -0000
*************** stmp-fixproto: fixhdr.ready fixproto stm
*** 2902,2907 ****
--- 2902,2908 ----
  	else \
  	  : This line works around a 'make' bug in BSDI 1.1.; \
+ 	  FIX_HEADER="build/fix-header$(build_exeext)"; export FIX_HEADER; \
  	  mkinstalldirs="$(mkinstalldirs)"; \
  	    export mkinstalldirs; \
  	  if [ -d "$(SYSTEM_HEADER_DIR)" ]; then \

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