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 <[email protected]> --- 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 _______________________________________________ uClibc mailing list [email protected] http://lists.busybox.net/mailman/listinfo/uclibc
