From 684c87ae2bab8f5abd6826342095d92f16a87f8f Mon Sep 17 00:00:00 2001 From: Linus Torvalds Date: Wed, 7 Feb 2007 20:24:25 -0800 Subject: [PATCH] --- yaml --- r: 46768 b: refs/heads/master c: c4184f117af7441fb83bc413d2214d92920e0289 h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/scripts/Kbuild.include | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index 3bb8a1cd2fff..d63ce005cb15 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 905adce4094d64a6691df994e424fbf486301adc +refs/heads/master: c4184f117af7441fb83bc413d2214d92920e0289 diff --git a/trunk/scripts/Kbuild.include b/trunk/scripts/Kbuild.include index d65c40331e66..8d7eabf238c0 100644 --- a/trunk/scripts/Kbuild.include +++ b/trunk/scripts/Kbuild.include @@ -60,17 +60,16 @@ endef # Usage: option = $(call checker-shell,$(CC)...-o $$OUT,option-ok,otherwise) # Exit code chooses option. $$OUT is safe location for needless output. define checker-shell + $(strip $(shell set -e; \ DIR=$(KBUILD_EXTMOD); \ cd $${DIR:-$(objtree)}; \ OUT=$$PWD/.$$$$.null; \ - \ - ln -s /dev/null $$OUT; \ if $(1) >/dev/null 2>&1; \ then echo "$(2)"; \ else echo "$(3)"; \ fi; \ - rm -f $$OUT) + rm -f $$OUT)) endef # as-option