[git commit] test/silly: Extend include path.
Bernhard Reutner-Fischer
rep.dot.nop at gmail.com
Wed May 20 10:18:19 UTC 2015
commit: http://git.uclibc.org/uClibc/commit/?id=ec0827d3c2af5c9569c04cbb6f57a3c581583722
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/master
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>
Acked-by: Vineet Gupta <vgupta at synopsys.com>
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
test/silly/Makefile.in | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/test/silly/Makefile.in b/test/silly/Makefile.in
index 9bb4032..da83d9a 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)
More information about the uClibc-cvs
mailing list