Installing gsyslimits.h

Momchil Velikov velco@fadata.bg
Mon Mar 12 07:50:00 GMT 2001


Hi,

The following patch makes sure the syslimits.h file is installed in
the GCC include directory.  The configure command was

  configure --prefix=/cygwin --build=i686-linux --host=i686-cygwin --target=arm-elf

STMP_FIXINC is set to empty by build-make.  The prefix /cygwin is
different from the prefix where the GNU/Linux hosted arm-elf-gcc is
installed, so later cygwin hosted arm-elf-gcc does not find
syslimits.h.

Regards,
-velco


2001-03-12  Momchil Velikov  <velco@fadata.bg>

	* Makefile.in (stmp-int-hdrs): Make sure syslimits.h is installed.  


Index: gcc/Makefile.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Makefile.in,v
retrieving revision 1.602.2.2
diff -c -3 -p -r1.602.2.2 Makefile.in
*** Makefile.in	2001/03/01 16:55:39	1.602.2.2
--- Makefile.in	2001/03/12 15:06:38
*************** stmp-int-hdrs: $(STMP_FIXINC) $(USER_H) 
*** 2060,2065 ****
--- 2060,2069 ----
  	rm -f include/limits.h
  	cp xlimits.h include/limits.h
  	chmod a+r include/limits.h
+ 	if [ ! -f include/syslimits.h ]; then \
+ 	  cp $(srcdir)/gsyslimits.h include/syslimits.h && \
+ 	  chmod a+r include/syslimits.h; \
+ 	fi
  	rm -f include/float.h
  	if [ x$(FLOAT_H) != xMakefile.in ]; then \
  	  cp $(srcdir)/config/$(FLOAT_H) include/float.h && \



More information about the Gcc-patches mailing list