From 7f608c391dc62a712cf0d641698ed1cdc38a4e6c Mon Sep 17 00:00:00 2001 From: Tianon Gravi Date: Tue, 17 Nov 2015 09:44:36 -0800 Subject: [PATCH] Prevent the creation of "a.out" at the repo root Our clever "gcc" invocations were creating a spurious "a.out" file at the root of the repo (which just happened to be in ".gitignore" so we didn't notice it sooner). Signed-off-by: Andrew "Tianon" Page --- hack/make.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hack/make.sh b/hack/make.sh index f914bf0f2e..52ad07e22b 100755 --- a/hack/make.sh +++ b/hack/make.sh @@ -110,7 +110,7 @@ fi # test whether "btrfs/version.h" exists and apply btrfs_noversion appropriately if \ command -v gcc &> /dev/null \ - && ! gcc -E - &> /dev/null <<<'#include ' \ + && ! gcc -E - -o /dev/null &> /dev/null <<<'#include ' \ ; then DOCKER_BUILDTAGS+=' btrfs_noversion' fi @@ -119,7 +119,7 @@ fi # functionality. if \ command -v gcc &> /dev/null \ - && ! ( echo -e '#include \nint main() { dm_task_deferred_remove(NULL); }'| gcc -ldevmapper -xc - &> /dev/null ) \ + && ! ( echo -e '#include \nint main() { dm_task_deferred_remove(NULL); }'| gcc -ldevmapper -xc - -o /dev/null &> /dev/null ) \ ; then DOCKER_BUILDTAGS+=' libdm_no_deferred_remove' fi