aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Andrew Burgess <andrew.burgess@embecosm.com>2015-05-07 16:12:02 +0100
committerGravatar Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>2015-05-20 12:18:19 +0200
commitec0827d3c2af5c9569c04cbb6f57a3c581583722 (patch)
tree3c705b0c22fffaad0d41ecd75b9c46b1eca85915
parentfe7d30e6337f280a451ac057f47d48349b63e462 (diff)
downloaduClibc-ec0827d3c2af5c9569c04cbb6f57a3c581583722.tar.gz
uClibc-ec0827d3c2af5c9569c04cbb6f57a3c581583722.tar.bz2
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.in7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/silly/Makefile.in b/test/silly/Makefile.in
index 9bb4032b5..da83d9a5b 100644
--- a/test/silly/Makefile.in
+++ b/test/silly/Makefile.in
@@ -6,3 +6,10 @@ RET_tiny := 42
# missing internal headers, disable these
GLIBC_TESTS_DISABLED := tst-atomic_glibc tst-atomic-long_glibc
+
+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)