summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Burgess <andrew.burgess@embecosm.com>2015-05-07 16:12:02 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2015-06-10 10:18:54 -0500
commita7f7831ec0914f471883c1dfe494a3e68557b56f (patch)
treea9ea1920669571cfb0b8162cff453464b7d936a5
parentb2d27c71bd13820a4263fa7ebda4c1a4a95b501c (diff)
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 <andrew.burgess@embecosm.com> Acked-by: Vineet Gupta <vgupta@synopsys.com> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
-rw-r--r--test/silly/Makefile.in8
1 files 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)