diff mbox series

[PULL,v2,07/15] configure: Add system = 'linux' for meson when cross-compiling

Message ID 20200902154932.390595-8-thuth@redhat.com
State New
Headers show
Series [PULL,v2,01/15] configure: Fix atomic64 test for --enable-werror on macOS | expand

Commit Message

Thomas Huth Sept. 2, 2020, 3:49 p.m. UTC
Meson needs the "system = xyz" line when cross-compiling. We are already
adding a "system = 'windows'" for the MinGW cross-compilation case here,
so let's add a "system = 'linux'" now for Linux hosts, too.

Message-Id: <20200823111757.72002-2-thuth@redhat.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
 configure | 3 +++
 1 file changed, 3 insertions(+)
diff mbox series

Patch

diff --git a/configure b/configure
index 5645575688..cc9af72358 100755
--- a/configure
+++ b/configure
@@ -8163,6 +8163,9 @@  if test -n "$cross_prefix"; then
             ?:*) pre_prefix=/ ;;
         esac
     fi
+    if test "$linux" = "yes" ; then
+        echo "system = 'linux'" >> $cross
+    fi
     case "$ARCH" in
         i386|x86_64)
             echo "cpu_family = 'x86'" >> $cross