summaryrefslogtreecommitdiff
path: root/Rules.mak
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2024-04-24 04:51:02 -0700
committerWaldemar Brodkorb <wbx@openadk.org>2024-04-24 18:13:43 +0200
commit1614cebc9e36580a90ad27295640a757af5d6dff (patch)
treedf67513b8c18f73440609e90cf24f1550cb99299 /Rules.mak
parent016371460afd6126b6857561f51d40d09c1b8120 (diff)
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>
Diffstat (limited to 'Rules.mak')
-rw-r--r--Rules.mak1
1 files changed, 1 insertions, 0 deletions
diff --git a/Rules.mak b/Rules.mak
index 2c2c87928..05bca5e4a 100644
--- a/Rules.mak
+++ b/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.