summaryrefslogtreecommitdiff
path: root/usr/include
diff options
context:
space:
mode:
Diffstat (limited to 'usr/include')
-rw-r--r--usr/include/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/include/Makefile b/usr/include/Makefile
index fa01bcda21f5..6d86a53c6f0a 100644
--- a/usr/include/Makefile
+++ b/usr/include/Makefile
@@ -151,7 +151,8 @@ endif
always-y := $(patsubst $(obj)/%.h,%.hdrtest, $(shell find $(obj) -name '*.h' 2>/dev/null))
target-no-libc = $(filter-out $(uses-libc), $*.h)
-target-can-compile = $(filter-out $(no-header-test), $*.h)
+target-can-compile = $(and $(filter-out $(no-header-test), $*.h), \
+ $(or $(CONFIG_CC_CAN_LINK), $(target-no-libc)))
# Include the header twice to detect missing include guard.
quiet_cmd_hdrtest = HDRTEST $<