[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 06/13] configure: Handle having no c++ compiler in FO
From: |
Michael Tokarev |
Subject: |
[Qemu-devel] [PULL 06/13] configure: Handle having no c++ compiler in FORTIFY_SOURCE check |
Date: |
Wed, 12 Jul 2017 16:38:02 +0300 |
From: Peter Maydell <address@hidden>
Our FORTIFY_SOURCE check assumes that $cxx refers to a working C++
compiler, with the result that if you don't happen to have one
then configure will spuriously print
configure: line 4685: c++: command not found
Fix this by adding a 'has $cxx' check.
Signed-off-by: Peter Maydell <address@hidden>
Reviewed-by: Philippe Mathieu-Daudé <address@hidden>
Signed-off-by: Michael Tokarev <address@hidden>
---
configure | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/configure b/configure
index ce7e8aa842..08ef54103e 100755
--- a/configure
+++ b/configure
@@ -4771,7 +4771,7 @@ fi
if test "$fortify_source" != "no"; then
if echo | $cc -dM -E - | grep __clang__ > /dev/null 2>&1 ; then
fortify_source="no";
- elif test -n "$cxx" &&
+ elif test -n "$cxx" && has $cxx &&
echo | $cxx -dM -E - | grep __clang__ >/dev/null 2>&1 ; then
fortify_source="no";
else
--
2.11.0
- [Qemu-devel] [PULL 00/13] Trivial patches for 2017-07-12, Michael Tokarev, 2017/07/12
- [Qemu-devel] [PULL 07/13] elf-loader: warn about invalid endianness, Michael Tokarev, 2017/07/12
- [Qemu-devel] [PULL 01/13] target/xtensa: gdbstub: drop dead return statement, Michael Tokarev, 2017/07/12
- [Qemu-devel] [PULL 06/13] configure: Handle having no c++ compiler in FORTIFY_SOURCE check,
Michael Tokarev <=
- [Qemu-devel] [PULL 02/13] util/qemu-sockets: Drop unused helper socket_address_to_string(), Michael Tokarev, 2017/07/12
- [Qemu-devel] [PULL 03/13] configure: Fix build with pkg-config and --static --enable-sdl, Michael Tokarev, 2017/07/12
- [Qemu-devel] [PULL 11/13] include/hw/ptimer.h: Add documentation comments, Michael Tokarev, 2017/07/12
- [Qemu-devel] [PULL 12/13] qobject: Catch another straggler for use of qdict_put_str(), Michael Tokarev, 2017/07/12
- [Qemu-devel] [PULL 05/13] hw/pci: define msi_nonbroken in pci-stub, Michael Tokarev, 2017/07/12
- [Qemu-devel] [PULL 13/13] qobject: Update coccinelle script to catch Q{INC, DEC}REF, Michael Tokarev, 2017/07/12
- [Qemu-devel] [PULL 10/13] hxtool: remove dead -q option, Michael Tokarev, 2017/07/12
- [Qemu-devel] [PULL 08/13] hw/core: fix missing return value in load_image_targphys_as(), Michael Tokarev, 2017/07/12
- [Qemu-devel] [PULL 04/13] hw/misc: add missing includes, Michael Tokarev, 2017/07/12
- [Qemu-devel] [PULL 09/13] qga-win32: Fix memory leak of device information set, Michael Tokarev, 2017/07/12