Fix gcc compile test with proper flag ordering
This test for libdevmapper was always silently failing because the linker never got the `-ldevmapper` information. Putting the flag last corrects the test. Docker-DCO-1.1-Signed-off-by: Phil Estes <estesp@linux.vnet.ibm.com> (github: estesp)
This commit is contained in:
parent
949e53a0f1
commit
e207645307
|
@ -137,7 +137,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 -xc - -ldevmapper -o /dev/null &> /dev/null ) \
|
&& ! ( echo -e '#include <libdevmapper.h>\nint main() { dm_task_deferred_remove(NULL); }'| gcc -xc - -o /dev/null -ldevmapper &> /dev/null ) \
|
||||||
; then
|
; then
|
||||||
DOCKER_BUILDTAGS+=' libdm_no_deferred_remove'
|
DOCKER_BUILDTAGS+=' libdm_no_deferred_remove'
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue