Browse Source

fix out-of-tree build with UCLIBC_HAS_CONTEXT_FUNCS

When building libc out-of-tree *context functions cannot find generated
header ucontext_i.h:

  libc/sysdeps/linux/xtensa/setcontext.S:19:10:
    fatal error: ucontext_i.h: No such file or directory

Fix that by adding include path to the build directory with that file to
the compiler flags.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Max Filippov 1 week ago
parent
commit
1614cebc9e
1 changed files with 1 additions and 0 deletions
  1. 1 0
      Rules.mak

+ 1 - 0
Rules.mak

@@ -604,6 +604,7 @@ CFLAGS := $(XWARNINGS) $(CPU_CFLAGS) $(SSP_CFLAGS) \
 	-nostdinc -I$(top_builddir)include \
 	-I$(top_srcdir)include -include libc-symbols.h \
 	-I$(top_srcdir)libc/sysdeps/linux/$(TARGET_ARCH) \
+	-I$(top_builddir)libc/sysdeps/linux/$(TARGET_ARCH) \
 	-I$(top_srcdir)libc/sysdeps/linux \
 	-I$(top_srcdir)ldso/ldso/$(TARGET_ARCH) \
 	-I$(top_srcdir)ldso/include -I.