mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fix libdevmapper deferred removal detection
When linking, position of `-l` flags is important since they muse come _after_ any object files which uses symbols from a specified library, that is due to --as-needed binutils ld flag enabled by default Signed-off-by: Maxim Ivanov <ivanov.maxim@gmail.com>
This commit is contained in:
parent
776c5ee299
commit
24152a4231
1 changed files with 1 additions and 1 deletions
|
@ -135,7 +135,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 - -o /dev/null &> /dev/null ) \
|
&& ! ( echo -e '#include <libdevmapper.h>\nint main() { dm_task_deferred_remove(NULL); }'| gcc -xc - -ldevmapper -o /dev/null &> /dev/null ) \
|
||||||
; then
|
; then
|
||||||
DOCKER_BUILDTAGS+=' libdm_no_deferred_remove'
|
DOCKER_BUILDTAGS+=' libdm_no_deferred_remove'
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue