mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
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 <admwiggin@gmail.com>
This commit is contained in:
parent
71f422435e
commit
7f608c391d
1 changed files with 2 additions and 2 deletions
|
@ -110,7 +110,7 @@ fi
|
||||||
# test whether "btrfs/version.h" exists and apply btrfs_noversion appropriately
|
# test whether "btrfs/version.h" exists and apply btrfs_noversion appropriately
|
||||||
if \
|
if \
|
||||||
command -v gcc &> /dev/null \
|
command -v gcc &> /dev/null \
|
||||||
&& ! gcc -E - &> /dev/null <<<'#include <btrfs/version.h>' \
|
&& ! gcc -E - -o /dev/null &> /dev/null <<<'#include <btrfs/version.h>' \
|
||||||
; then
|
; then
|
||||||
DOCKER_BUILDTAGS+=' btrfs_noversion'
|
DOCKER_BUILDTAGS+=' btrfs_noversion'
|
||||||
fi
|
fi
|
||||||
|
@ -119,7 +119,7 @@ fi
|
||||||
# functionality.
|
# functionality.
|
||||||
if \
|
if \
|
||||||
command -v gcc &> /dev/null \
|
command -v gcc &> /dev/null \
|
||||||
&& ! ( echo -e '#include <libdevmapper.h>\nint main() { dm_task_deferred_remove(NULL); }'| gcc -ldevmapper -xc - &> /dev/null ) \
|
&& ! ( echo -e '#include <libdevmapper.h>\nint main() { dm_task_deferred_remove(NULL); }'| gcc -ldevmapper -xc - -o /dev/null &> /dev/null ) \
|
||||||
; then
|
; then
|
||||||
DOCKER_BUILDTAGS+=' libdm_no_deferred_remove'
|
DOCKER_BUILDTAGS+=' libdm_no_deferred_remove'
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Reference in a new issue