PATCH to gcc/Makefile.in

Gavin Romig-Koch gavin@cygnus.com
Fri Jan 15 06:46:00 GMT 1999


OK to commit?

The top level of my source tree is actually just a bunch of soft links
into the various source packages needed to build a cross compiler 
(egcs,binutils,newlib,dejagnu,etc).  This patch allows gcc to find
tcl dispite gcc being connected to the source tree by a soft link.
Is this a reasonably common behavior of 'cd'?  Is there a better way
to do this?  Are their any standards for the right way to do this?

                                                -gavin...



	* Makefile.in (TCL_LIBRARY): Use 'cd' to find the library
	directory logically rather than physically. 


Index: Makefile.in
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/Makefile.in,v
retrieving revision 1.210
diff -c -r1.210 Makefile.in
*** Makefile.in	1999/01/12 00:07:33	1.210
--- Makefile.in	1999/01/15 14:27:17
***************
*** 2672,2678 ****
  	cd testsuite; \
  	EXPECT=${EXPECT} ; export EXPECT ; \
  	if [ -f $${rootme}/../expect/expect ] ; then  \
! 	   TCL_LIBRARY=$${srcdir}/../tcl/library ; \
  	    export TCL_LIBRARY ; fi ; \
  	$(RUNTEST) --tool g++ $(RUNTESTFLAGS)
  
--- 2672,2678 ----
  	cd testsuite; \
  	EXPECT=${EXPECT} ; export EXPECT ; \
  	if [ -f $${rootme}/../expect/expect ] ; then  \
! 	   TCL_LIBRARY=`cd ${srcdir}/../tcl/library ; pwd` ; \
  	    export TCL_LIBRARY ; fi ; \
  	$(RUNTEST) --tool g++ $(RUNTESTFLAGS)
  
***************
*** 2682,2688 ****
  	cd testsuite; \
  	EXPECT=${EXPECT} ; export EXPECT ; \
  	if [ -f $${rootme}/../expect/expect ] ; then  \
! 	   TCL_LIBRARY=$${srcdir}/../tcl/library ; \
  	   export TCL_LIBRARY ; fi ; \
  	$(RUNTEST) --tool gcc $(RUNTESTFLAGS)
  
--- 2682,2688 ----
  	cd testsuite; \
  	EXPECT=${EXPECT} ; export EXPECT ; \
  	if [ -f $${rootme}/../expect/expect ] ; then  \
! 	   TCL_LIBRARY=`cd ${srcdir}/../tcl/library ; pwd` ; \
  	   export TCL_LIBRARY ; fi ; \
  	$(RUNTEST) --tool gcc $(RUNTESTFLAGS)
  
***************
*** 2692,2698 ****
  	cd testsuite; \
  	EXPECT=${EXPECT} ; export EXPECT ; \
  	if [ -f $${rootme}/../expect/expect ] ; then  \
! 	   TCL_LIBRARY=$${srcdir}/../tcl/library ; \
  	   export TCL_LIBRARY ; fi ; \
  	$(RUNTEST) --tool g77 $(RUNTESTFLAGS)
  
--- 2692,2698 ----
  	cd testsuite; \
  	EXPECT=${EXPECT} ; export EXPECT ; \
  	if [ -f $${rootme}/../expect/expect ] ; then  \
! 	   TCL_LIBRARY=`cd ${srcdir}/../tcl/library ; pwd` ; \
  	   export TCL_LIBRARY ; fi ; \
  	$(RUNTEST) --tool g77 $(RUNTESTFLAGS)
  
***************
*** 2702,2708 ****
  	cd testsuite; \
  	EXPECT=${EXPECT} ; export EXPECT ; \
  	if [ -f $${rootme}/../expect/expect ] ; then  \
! 	   TCL_LIBRARY=$${srcdir}/../tcl/library ; \
  	    export TCL_LIBRARY ; fi ; \
  	$(RUNTEST) --tool objc $(RUNTESTFLAGS)
  
--- 2702,2708 ----
  	cd testsuite; \
  	EXPECT=${EXPECT} ; export EXPECT ; \
  	if [ -f $${rootme}/../expect/expect ] ; then  \
! 	   TCL_LIBRARY=`cd ${srcdir}/../tcl/library ; pwd` ; \
  	    export TCL_LIBRARY ; fi ; \
  	$(RUNTEST) --tool objc $(RUNTESTFLAGS)
  



More information about the Gcc-patches mailing list