[git commit nptl] testsuite: use KERNEL_HEADERS

Denys Vlasenko vda.linux at googlemail.com
Wed Aug 19 11:29:41 UTC 2009


commit: http://git.uclibc.org/uClibc/commit/?id=b770264e1095fef99da238f958ef2e91b99ba296
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/nptl

Signed-off-by: Denys Vlasenko <vda.linux at googlemail.com>
Signed-off-by: Austin Foxley <austinf at cetoncorp.com>
---
 test/Rules.mak |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/test/Rules.mak b/test/Rules.mak
index d1a1607..d31372f 100644
--- a/test/Rules.mak
+++ b/test/Rules.mak
@@ -86,6 +86,16 @@ CC_IPREFIX := $(shell $(CC) --print-file-name=include)
 CC_INC := -I$(dir $(CC_IPREFIX))include-fixed -I$(CC_IPREFIX)
 CFLAGS += $(CC_INC)
 
+ifneq ($(KERNEL_HEADERS),)
+ifeq ($(patsubst /%,/,$(KERNEL_HEADERS)),/)
+# Absolute path in KERNEL_HEADERS
+CFLAGS += -I$(KERNEL_HEADERS)
+else
+# Relative path in KERNEL_HEADERS
+CFLAGS += -I$(top_builddir)$(KERNEL_HEADERS)
+endif
+endif
+
 # Can't add $(OPTIMIZATION) here, it may be target-specific.
 # Just adding -Os for now.
 HOST_CFLAGS    += $(XWARNINGS) -Os $(XCOMMON_CFLAGS)
-- 
1.6.3.3



More information about the uClibc-cvs mailing list