This is the mail archive of the gcc-bugs@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 for f77 cross compiler build


I needed this patch to build an f77 cross compiler, otherwise CC=gcc
from F77_FLAGS_TO_PASS is passed to the configure that is supposed to
be using the target compiler instead of the host compiler.  I.E. the
value of CC set by the override is not substituted into $(CC) in
F77_FLAGS_TO_PASS.

  Fri Nov 21 09:35:20 1997  Fred Fish  <fnf@cygnus.com>

	* Make-lang.in (stmp-f2c.h): Move inclusion of F77_FLAGS_TO_PASS
 	to before override of CC so that the override works.


Index: Make-lang.in
===================================================================
RCS file: /cvsroot/gg/egcs/gcc/f/Make-lang.in,v
retrieving revision 1.1.1.5
diff -c -r1.1.1.5 Make-lang.in
*** Make-lang.in	1997/10/17 02:54:01	1.1.1.5
--- Make-lang.in	1997/11/21 16:35:55
***************
*** 290,309 ****
  	*f77*) top=`pwd`; \
  	src=`cd $(srcdir); pwd`; \
  	  cd f/runtime; \
  	  CC="`case '$(GCC_FOR_TARGET)' in \
  	     './xgcc -B./') echo $${top}/xgcc -B$${top}/;; \
  	     *) echo '$(GCC_FOR_TARGET)';; esac`" \
! 	  $(F77_FLAGS_TO_PASS) CONFIG_SITE=/dev/null $(SHELL) \
  	  $${src}/f/runtime/configure --srcdir=$${src}/f/runtime ;; \
  	esac
  	case "$(LANGUAGES)" in \
  	*f77*) top=`pwd`; \
  	src=`cd $(srcdir); pwd`; \
  	  cd f/runtime/libU77; \
  	  CC="`case '$(GCC_FOR_TARGET)' in \
  	     './xgcc -B./') echo $${top}/xgcc -B$${top}/;; \
  	     *) echo '$(GCC_FOR_TARGET)';; esac`" \
! 	  $(F77_FLAGS_TO_PASS) CONFIG_SITE=/dev/null $(SHELL) \
  	  $${src}/f/runtime/libU77/configure --srcdir=$${src}/f/runtime/libU77 ;; \
  	esac
  	touch stmp-f2c.h
--- 290,311 ----
  	*f77*) top=`pwd`; \
  	src=`cd $(srcdir); pwd`; \
  	  cd f/runtime; \
+ 	  $(F77_FLAGS_TO_PASS) \
  	  CC="`case '$(GCC_FOR_TARGET)' in \
  	     './xgcc -B./') echo $${top}/xgcc -B$${top}/;; \
  	     *) echo '$(GCC_FOR_TARGET)';; esac`" \
! 	  CONFIG_SITE=/dev/null $(SHELL) \
  	  $${src}/f/runtime/configure --srcdir=$${src}/f/runtime ;; \
  	esac
  	case "$(LANGUAGES)" in \
  	*f77*) top=`pwd`; \
  	src=`cd $(srcdir); pwd`; \
  	  cd f/runtime/libU77; \
+ 	  $(F77_FLAGS_TO_PASS) \
  	  CC="`case '$(GCC_FOR_TARGET)' in \
  	     './xgcc -B./') echo $${top}/xgcc -B$${top}/;; \
  	     *) echo '$(GCC_FOR_TARGET)';; esac`" \
! 	  CONFIG_SITE=/dev/null $(SHELL) \
  	  $${src}/f/runtime/libU77/configure --srcdir=$${src}/f/runtime/libU77 ;; \
  	esac
  	touch stmp-f2c.h



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