[dm-devel] [PATCH 1/2] multipath-tools: fix compilation with gcc < 4.9 on dash shell

Bart Van Assche Bart.VanAssche at wdc.com
Mon Jul 30 19:59:41 UTC 2018


On Mon, 2018-07-30 at 16:37 -0300, Mauricio Faria de Oliveira wrote:
> diff --git a/Makefile.inc b/Makefile.inc
> index af2f5bae09d3..a12b46ef315e 100644
> --- a/Makefile.inc
> +++ b/Makefile.inc
> @@ -78,7 +78,7 @@ INSTALL_PROGRAM	= install
>  # Test if the C compiler supports the option.
>  # Evaluates to "option" if yes, and "fallback" otherwise.
>  TEST_CC_OPTION = $(shell \
> -	if echo 'int main(void){return 0;}' | $(CC) -o /dev/null -c "$(1)" -xc - &>/dev/null; \
> +	if echo 'int main(void){return 0;}' | $(CC) -o /dev/null -c "$(1)" -xc - >/dev/null 2>&1; \
>  	then \
>  		echo "$(1)"; \
>  	else \

Reviewed-by: Bart Van Assche <bart.vanassche at wdc.com>






More information about the dm-devel mailing list