aboutsummaryrefslogtreecommitdiff
path: root/posix/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'posix/Makefile')
-rw-r--r--posix/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/posix/Makefile b/posix/Makefile
index 8b70b62b37..73e78d43ad 100644
--- a/posix/Makefile
+++ b/posix/Makefile
@@ -137,7 +137,11 @@ endif
# Run a test on the header files we use.
# XXX Please note that for now we ignore the result of this test.
-tests: $(objpfx)annexc.out $(objpfx)bug-regex2-mem
+tests: $(objpfx)annexc.out
+ifeq (no,$(cross-compiling))
+tests:$(objpfx)bug-regex2-mem
+endif
+
$(objpfx)annexc.out: $(objpfx)annexc
-$(dir $<)$(notdir $<) '$(CC)' \
'-I../include -I.. $(+sysdep-includes) $(sysincludes)' > $@