[PATCH] test/silly: Extend include path.
Andrew Burgess
andrew.burgess at embecosm.com
Thu May 7 15:12:02 UTC 2015
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 at embecosm.com>
---
test/silly/Makefile.in | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/test/silly/Makefile.in b/test/silly/Makefile.in
index 9bb4032..faaff9c 100644
--- a/test/silly/Makefile.in
+++ b/test/silly/Makefile.in
@@ -6,3 +6,7 @@ RET_tiny := 42
# missing internal headers, disable these
GLIBC_TESTS_DISABLED := tst-atomic_glibc tst-atomic-long_glibc
+
+EXTRA_CFLAGS := -I$(top_srcdir)libc/sysdeps/linux/$(TARGET_ARCH) \
+ -I$(top_srcdir)libc/sysdeps/linux \
+ -I$(top_builddir)include
--
2.2.2
More information about the uClibc
mailing list