1Upstream-Status: Inappropriate [OE-Specific] 2 3When trying to build libgloss for an arm target, the build system 4complains about missing some include files: 5 6| fatal error: acle-compiat.h: No such file or directory 7| #include "acle-compat.h" 8| ^~~~~~~~~~~~~~~ 9| compilation terminated. 10 11These include files come from the newlib source, but since we 12are building libgloss separately from newlib, libgloss is unaware 13of where they are, this patch fixes the INCLUDES so the build system 14can find such files. 15 16Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandr@xilinx.com> 17 18Index: newlib-3.0.0/libgloss/config/default.mh 19=================================================================== 20--- newlib-3.0.0.orig/libgloss/config/default.mh 21+++ newlib-3.0.0/libgloss/config/default.mh 22@@ -1,7 +1,7 @@ 23 NEWLIB_CFLAGS = `if [ -d ${objroot}/newlib ]; then echo -I${objroot}/newlib/targ-include -I${srcroot}/newlib/libc/include; fi` 24 NEWLIB_LDFLAGS = `if [ -d ${objroot}/newlib ]; then echo -B${objroot}/newlib/ -L${objroot}/newlib/; fi` 25 26-INCLUDES = -I. -I$(srcdir)/.. 27+INCLUDES = -I. -I$(srcdir)/.. -I$(srcdir)/../newlib/libc/machine/arm 28 # Note that when building the library, ${MULTILIB} is not the way multilib 29 # options are passed; they're passed in $(CFLAGS). 30 CFLAGS_FOR_TARGET = -O2 -g ${MULTILIB} ${INCLUDES} ${NEWLIB_CFLAGS} 31