Bug in top level Makefile.in

Joel Sherrill joel.sherrill@OARcorp.com
Wed Jan 5 06:13:00 GMT 2000


The attached patch fixes a minor bug in the gcc/Makefile.in.  This is
Ian Lance Taylor's description of the code fragment being fixed:

  It looks like a pretty clear bug in the gcc Makefile.  The current
  code says:

  if we have newlib
    if we have winsup
      use newlib and winsup
    else
      use newlib include files, but not newlib libraries (*)
    fi
  else
    use neither newlib nor winsup
  fi

2000-01-05  Joel Sherrill (joel@OARcorp.com)

	* Makefile.in (CC_FOR_TARGET): Use newlib libraries as well
	as include files.



-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel@OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985
Index: Makefile.in
===================================================================
RCS file: /cvs/gcc/egcs/Makefile.in,v
retrieving revision 1.41
diff -c -3 -p -r1.41 Makefile.in
*** Makefile.in	1999/06/22 22:46:19	1.41
--- Makefile.in	2000/01/05 14:12:57
*************** CC_FOR_TARGET = ` \
*** 216,222 ****
        if [ -f $$r/$(TARGET_SUBDIR)/winsup/Makefile ] ; then \
          echo $$r/gcc/xgcc -B$$r/gcc/ -B$$r/$(TARGET_SUBDIR)/newlib/ -B$(build_tooldir)/bin/ -L$$r/$(TARGET_SUBDIR)/winsup -idirafter $$r/$(TARGET_SUBDIR)/newlib/targ-include -idirafter $$s/newlib/libc/include -nostdinc; \
        else \
!         echo $$r/gcc/xgcc -B$$r/gcc/ -B$(build_tooldir)/bin/ -idirafter $$r/$(TARGET_SUBDIR)/newlib/targ-include -idirafter $$s/newlib/libc/include -nostdinc; \
        fi; \
      else \
        echo $$r/gcc/xgcc -B$$r/gcc/ -B$(build_tooldir)/bin/; \
--- 216,222 ----
        if [ -f $$r/$(TARGET_SUBDIR)/winsup/Makefile ] ; then \
          echo $$r/gcc/xgcc -B$$r/gcc/ -B$$r/$(TARGET_SUBDIR)/newlib/ -B$(build_tooldir)/bin/ -L$$r/$(TARGET_SUBDIR)/winsup -idirafter $$r/$(TARGET_SUBDIR)/newlib/targ-include -idirafter $$s/newlib/libc/include -nostdinc; \
        else \
!         echo $$r/gcc/xgcc -B$$r/gcc/ -B$$r/$(TARGET_SUBDIR)/newlib/ -B$(build_tooldir)/bin/ -idirafter $$r/$(TARGET_SUBDIR)/newlib/targ-include -idirafter $$s/newlib/libc/include -nostdinc; \
        fi; \
      else \
        echo $$r/gcc/xgcc -B$$r/gcc/ -B$(build_tooldir)/bin/; \


More information about the Gcc-patches mailing list