On Tuesday 21 July 2009 19:24, Bernhard Reutner-Fischer wrote: > On Tue, Jul 21, 2009 at 07:07:54PM +0200, Denys Vlasenko wrote: > > >> In my POV this is a configuration issue and not libc's business. > > > >Then why do we have KERNEL_HEADERS? > > So add the hunks that CFLAGS+=-I$(KERNEL_HEADERS) from Rules.mk to > the shadow-copy in test/
Is this ok with you, Bernhard? diff -d -urpN uClibc.7/test/Rules.mak uClibc.8/test/Rules.mak --- uClibc.7/test/Rules.mak 2009-07-20 21:53:29.000000000 +0200 +++ uClibc.8/test/Rules.mak 2009-07-22 03:09:09.000000000 +0200 @@ -86,6 +86,10 @@ CC_IPREFIX := $(shell $(CC) --print-file CC_INC := -I$(dir $(CC_IPREFIX))include-fixed -I$(CC_IPREFIX) CFLAGS += $(CC_INC) +ifneq ($(KERNEL_HEADERS),) +CFLAGS += -I$(top_builddir)$(KERNEL_HEADERS) +endif + # Can't add $(OPTIMIZATION) here, it may be target-specific. # Just adding -Os for now. HOST_CFLAGS += $(XWARNINGS) -Os $(XCOMMON_CFLAGS) with this patch, I was able to run a few tests. Then it broke in test/librt/*: # make check ... c shmtest.c -o shmtest_glibc.o make[2]: c: Command not found make[2]: [shmtest_glibc] Error 127 (ignored) shmtest_glibc.o -o shmtest_glibc -lrt make[2]: shmtest_glibc.o: Command not found make[2]: *** [shmtest_glibc] Error 127 make[1]: *** [_dircompile_librt] Error 2 make: *** [test_compile] Error 2 -- vda _______________________________________________ uClibc mailing list uClibc@uclibc.org http://lists.busybox.net/mailman/listinfo/uclibc