Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame^] | 1 | Upstream-Status: Inappropriate [OE-Specific] |
| 2 | |
| 3 | When trying to build libgloss for an arm target, the build system |
| 4 | complains 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 | |
| 11 | These include files come from the newlib source, but since we |
| 12 | are building libgloss separately from newlib, libgloss is unaware |
| 13 | of where they are, this patch fixes the INCLUDES so the build system |
| 14 | can find such files. |
| 15 | |
| 16 | Signed-off-by: Alejandro Enedino Hernandez Samaniego <alejandr@xilinx.com> |
| 17 | |
| 18 | Index: 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} |