This is the mail archive of the gcc-patches@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]

Makefile.in (stmp-fixinc): Use tooldir instead of gcc_tooldir.


I have checked in this patch.

This fixes a cross compiler build for a vxworks target, using the
--with-headers configure option.

When trying to compile libgcc2.c, gcc gives an error message about not being
able to find some header files.  I can't find them because the header files
are in $tooldir/sys-include, and $tooldir is relative to $libsubdir, but
$libsubdir doesn't exist yet.  There is code in the Makefile to create
libsubdir in this case, but it didn't work because it too was trying to
use libsubdir relative pathnames.

Fri Mar 26 20:41:46 1999  Jim Wilson  <wilson@cygnus.com>

	* Makefile.in (stmp-fixinc): Use tooldir instead of gcc_tooldir.

Index: Makefile.in
===================================================================
RCS file: /cvs/cvsfiles/devo/gcc/Makefile.in,v
retrieving revision 1.764
diff -p -r1.764 Makefile.in
*** Makefile.in	1999/03/11 07:16:52	1.764
--- Makefile.in	1999/03/27 04:44:59
*************** stmp-fixinc: $(FIXINCLUDES) gsyslimits.h
*** 2163,2175 ****
  	  cp $(srcdir)/gsyslimits.h include/syslimits.h; \
  	fi
  	chmod a+r include/syslimits.h
! # If $(SYSTEM_HEADER_DIR) is $(gcc_tooldir)/sys-include, and
  # that directory exists, then make sure that $(libsubdir) exists.
! # This is because cpp is compiled to find $(gcc_tooldir)/include via
  # $(libsubdir)/$(unlibsubdir), which will only work if $(libsubdir)
  # exists.
! 	if [ "$(SYSTEM_HEADER_DIR)" = "$(gcc_tooldir)/sys-include" ] \
! 	   && [ -d $(gcc_tooldir)/sys-include ]; then \
  	  if [ -d $(libdir) ] ; then true ; else mkdir $(libdir) ; fi; \
  	  if [ -d $(libdir)/gcc-lib ] ; then true ; else mkdir $(libdir)/gcc-lib; fi; \
  	  if [ -d $(libdir)/gcc-lib/$(target_alias) ] ; then true ; else mkdir $(libdir)/gcc-lib/$(target_alias) ; fi; \
--- 2163,2177 ----
  	  cp $(srcdir)/gsyslimits.h include/syslimits.h; \
  	fi
  	chmod a+r include/syslimits.h
! # If $(SYSTEM_HEADER_DIR) is $(tooldir)/sys-include, and
  # that directory exists, then make sure that $(libsubdir) exists.
! # This is because cpp is compiled to find $(tooldir)/include via
  # $(libsubdir)/$(unlibsubdir), which will only work if $(libsubdir)
  # exists.
! # We deliberately use tooldir instead of gcc_tooldir here.  gcc_tooldir
! # won't work because libsubdir doesn't exist yet.
! 	if [ "$(SYSTEM_HEADER_DIR)" = "$(tooldir)/sys-include" ] \
! 	   && [ -d $(tooldir)/sys-include ]; then \
  	  if [ -d $(libdir) ] ; then true ; else mkdir $(libdir) ; fi; \
  	  if [ -d $(libdir)/gcc-lib ] ; then true ; else mkdir $(libdir)/gcc-lib; fi; \
  	  if [ -d $(libdir)/gcc-lib/$(target_alias) ] ; then true ; else mkdir $(libdir)/gcc-lib/$(target_alias) ; fi; \




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