[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] configure: check for $cxx before use
From: |
Laurent Vivier |
Subject: |
Re: [Qemu-devel] [PATCH] configure: check for $cxx before use |
Date: |
Thu, 12 Nov 2015 17:47:13 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 |
On 12/11/2015 17:29, John Snow wrote:
> I broke this when adding checks for clang++.
>
> Reported-by: Laurent Vivier <address@hidden>
> Signed-off-by: John Snow <address@hidden>
>
> ---
> configure | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/configure b/configure
> index 46fd8bd..f75df4b 100755
> --- a/configure
> +++ b/configure
> @@ -4435,7 +4435,8 @@ fi
> if test "$fortify_source" != "no"; then
> if echo | $cc -dM -E - | grep __clang__ > /dev/null 2>&1 ; then
> fortify_source="no";
> - elif echo | $cxx -dM -E - | grep __clang__ > /dev/null 2>&1 ; then
> + elif test -n "$cxx" &&
> + echo | $cxx -dM -E - | grep __clang__ >/dev/null 2>&1 ; then
> fortify_source="no";
> else
> fortify_source="yes"
>
This fixes the problem: no more error message.
Thanks,
Laurent