Re: [PATCH 3/5] Makefile: suppress error message from shell

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Jul 18, 2009 at 09:42:56PM +0100, Ramsay Jones wrote:
> In particular, on systems which do not have 'pkg-config' installed,
> every invocation of make issues the following message:
> 
>     /bin/sh: pkg-config: command not found
> 
> Suppress the message by redirecting stderr to the bit-bucket.
[...]
> --- a/Makefile
> +++ b/Makefile
> @@ -15,7 +15,7 @@ AR = ar
>  #     CFLAGS += -O0 -DDEBUG -g3 -gdwarf-2
>  #
>  
> -HAVE_LIBXML=$(shell pkg-config --exists libxml-2.0 && echo 'yes')
> +HAVE_LIBXML=$(shell pkg-config --exists libxml-2.0 2>/dev/null && echo 'yes')

Seems sensible; this way, systems without pkg-config will simply end up
without HAVE_LIBXML.

- Josh Triplett
--
To unsubscribe from this list: send the line "unsubscribe linux-sparse" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Newbies FAQ]     [LKML]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Trinity Fuzzer Tool]

  Powered by Linux