configure: check for $cxx before use
I broke this when adding checks for clang++. Reported-by: Laurent Vivier <lvivier@redhat.com> Signed-off-by: John Snow <jsnow@redhat.com> Message-id: 1447345789-840-1-git-send-email-jsnow@redhat.com Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
This commit is contained in:
parent
ed6c64489e
commit
cfcc7c1448
3
configure
vendored
3
configure
vendored
@ -4435,7 +4435,8 @@ fi
|
|||||||
if test "$fortify_source" != "no"; then
|
if test "$fortify_source" != "no"; then
|
||||||
if echo | $cc -dM -E - | grep __clang__ > /dev/null 2>&1 ; then
|
if echo | $cc -dM -E - | grep __clang__ > /dev/null 2>&1 ; then
|
||||||
fortify_source="no";
|
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";
|
fortify_source="no";
|
||||||
else
|
else
|
||||||
fortify_source="yes"
|
fortify_source="yes"
|
||||||
|
Loading…
Reference in New Issue
Block a user