From a7f7831ec0914f471883c1dfe494a3e68557b56f Mon Sep 17 00:00:00 2001 From: Andrew Burgess Date: Thu, 7 May 2015 16:12:02 +0100 Subject: test/silly: Extend include path. When attempting to build uClibc under buildroot, including building the tests, the silly tests don't currently compile, a result of attempting to build using a compiler that does not yet have an installed version of uClibc available. The error is a missing header file, specifically atomic.h. Taking inspiration from the nptl tests, I have extended the EXTRA_CFLAGS variable to add the required include paths. The tests can now be built under buildroot. Signed-off-by: Andrew Burgess Acked-by: Vineet Gupta Signed-off-by: Bernhard Reutner-Fischer --- test/silly/Makefile.in | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/test/silly/Makefile.in b/test/silly/Makefile.in index 2114d4d2e..8e0e6d120 100644 --- a/test/silly/Makefile.in +++ b/test/silly/Makefile.in @@ -4,5 +4,9 @@ RET_hello := 42 RET_tiny := 42 -# missing internal headers, disable these -TESTS_DISABLED := tst-atomic tst-atomic-long +atomic_headers := -I$(top_srcdir)libc/sysdeps/linux/$(TARGET_ARCH) \ + -I$(top_srcdir)libc/sysdeps/linux \ + -I$(top_builddir)include + +CFLAGS_tst-atomic = $(atomic_headers) +CFLAGS_tst-atomic-long = $(atomic_headers) -- cgit v1.2.3