f77 not linked in subdir

Fred Fish fnf@ninemoons.com
Fri Oct 10 22:55:00 GMT 1997


Since f77 is linked in the main gcc directory, these changes seem
appropriate.  In my case, I override USE_SUBDIR_ALLOCA in the cp
directory with a value that looks for alloca.o in the parent dir, and
that causes f77 to not link.  The obstack and malloc changes are for
consistency.

  Fri Oct 10 22:37:08 1997  Fred Fish  <fnf@ninemoons.com>

	* Makefile.in (SUBDIR_USE_ALLOCA): Change to USE_ALLOCA.
	(SUBDIR_USE_OBSTACK): Change to USE_OBSTACK.
	(SUBDIR_USE_MALLOC): Change to USE_MALLOC.

Index: Makefile.in
===================================================================
RCS file: /cvsroot/gg/egcs/gcc/f/Makefile.in,v
retrieving revision 1.2
diff -c -r1.2 Makefile.in
*** Makefile.in	1997/10/11 03:43:09	1.2
--- Makefile.in	1997/10/11 05:48:44
***************
*** 103,109 ****
  
  # Even if ALLOCA is set, don't use it if compiling with GCC, unless
  # a configuration file overrides this default.
! SUBDIR_USE_ALLOCA = `case "${CC}" in "${OLDCC}") if [ x$(ALLOCA) != x ]; then echo $(ALLOCA); else true; fi ;; esac`
  
  # Choose the real default target.
  ALL=all
--- 103,109 ----
  
  # Even if ALLOCA is set, don't use it if compiling with GCC, unless
  # a configuration file overrides this default.
! USE_ALLOCA = `case "${CC}" in "${OLDCC}") if [ x$(ALLOCA) != x ]; then echo $(ALLOCA); else true; fi ;; esac`
  
  # Choose the real default target.
  ALL=all
***************
*** 163,174 ****
  
  # Even if ALLOCA is set, don't use it if compiling with GCC.
  
! SUBDIR_OBSTACK = `if [ x$(OBSTACK) != x ]; then echo $(OBSTACK); else true; fi`
! SUBDIR_MALLOC = `if [ x$(MALLOC) != x ]; then echo $(MALLOC); else true; fi`
  
  # How to link with both our special library facilities
  # and the system's installed libraries.
! LIBS = $(SUBDIR_OBSTACK) $(SUBDIR_USE_ALLOCA) $(SUBDIR_MALLOC) $(CLIB)
  
  # Specify the directories to be searched for header files.
  # Both . and srcdir are used, in that order,
--- 163,174 ----
  
  # Even if ALLOCA is set, don't use it if compiling with GCC.
  
! USE_OBSTACK = `if [ x$(OBSTACK) != x ]; then echo $(OBSTACK); else true; fi`
! USE_MALLOC = `if [ x$(MALLOC) != x ]; then echo $(MALLOC); else true; fi`
  
  # How to link with both our special library facilities
  # and the system's installed libraries.
! LIBS = $(USE_OBSTACK) $(USE_ALLOCA) $(USE_MALLOC) $(CLIB)
  
  # Specify the directories to be searched for header files.
  # Both . and srcdir are used, in that order,



More information about the Gcc-bugs mailing list