From patchwork Wed May 1 22:38:18 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 163227 Delivered-To: patch@linaro.org Received: by 2002:a92:7e86:0:0:0:0:0 with SMTP id q6csp5035292ill; Wed, 1 May 2019 15:40:58 -0700 (PDT) X-Google-Smtp-Source: APXvYqwek2jrQRKmmxttePUB0CP6DLGjufmDVm1BX+MbFck/8a31lc9WpAWh7ux3v0mTLLyyFwBL X-Received: by 2002:a1c:a843:: with SMTP id r64mr101991wme.45.1556750458049; Wed, 01 May 2019 15:40:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556750458; cv=none; d=google.com; s=arc-20160816; b=WmW6vGPQa0wkOmPu99gaa444BVXcLhU5Jkg30gBx4kCWhh9hTK4EJDSJgOo0G9I4xH gH32yPaKdw9WfV1cDPO2mi/ec+uqhTK65qdd4x/RHvi+Aas4JqnIU6OAD/Pjos/TEKuC 7v2iwi7JuOwCRRMeA+e1vh1LX/PRIxY8mCrQwMZr4zyqCmZZGx4NQqOgFCEiiDKz7xYm IcvVZQ+XrSCQ/kAoZfr/UJ7HAsa3TD+iCZ7YRb4HgHbnwulrOpp3c2MewGc3ZJda80kF EkPgj33u4EpHQnBqRulcaLHnaYFixfjoD/ZyFpOAAttAG+QY8Ne22pXOinO7qXkZWuUZ rvbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=Y8fpOx1lHam9DoAyom3Eo+rGp2qFykY2yeJeOtgf3Ew=; b=dSOxsJecuqXDwKqHsd0libqzWukVbMVD9zhXM2TT1jzAe8CwPNiXrBS8c2B7xV65UP tMyiEcHt8pLubGcAO5LKUDKkocVRD9QlMXlI3LgyDbzmnNRAa7lfZuNH8o9SbGLIUWOy 0bS6VYDQMwtDRQ+NxHomqcI1M4vqsX07qOohOK8ne5U9vAthW1Bvn9JvCTVTvbcuSJKQ otzCdLSfzhYYa7/x7DMhKyl0s8beIkYTMfWuwQ7fC2Q+Cygyj0LD8SxVrn6oW4znHKBl pRqARei6C3f1e/58O4XTpoDJyHeW0kv0PFn1EP7HMOBdLTiOc9GkLnWxCmiw6uLPg7bS bcvg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=fm+bUfb7; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id e19si4119768wmh.139.2019.05.01.15.40.57 for (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 01 May 2019 15:40:58 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=fm+bUfb7; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([127.0.0.1]:42306 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hLxuK-00040a-W0 for patch@linaro.org; Wed, 01 May 2019 18:40:57 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46665) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hLxs2-0001z7-DJ for qemu-devel@nongnu.org; Wed, 01 May 2019 18:38:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hLxs0-0007xl-5q for qemu-devel@nongnu.org; Wed, 01 May 2019 18:38:33 -0400 Received: from mail-pf1-x444.google.com ([2607:f8b0:4864:20::444]:38034) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hLxrw-0007uz-KU for qemu-devel@nongnu.org; Wed, 01 May 2019 18:38:28 -0400 Received: by mail-pf1-x444.google.com with SMTP id 10so121951pfo.5 for ; Wed, 01 May 2019 15:38:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=Y8fpOx1lHam9DoAyom3Eo+rGp2qFykY2yeJeOtgf3Ew=; b=fm+bUfb7Y1LLRDVpMTda564BIcXlm15uLrPKYh2AqyVXXSnwmucJ4DIbgAwiHmVDMb Rnot9c+84HkJ7YQIEblxUiYN2wKjb5WmSLzWf6hFa893ZTBTzBDQu+f3vfGYPUBWNwVQ wfEbs3k1Ekyo1ahkmnvy6lUi//qQl5FjhSaMnyVHTz9AMFZ9NVjXKpH34I5W8RtZHjPS ZgRCWNueyXZ++Q7E6YK7lnzs6aqsCJ8u/xje4MFsm5mumj6v0Iv9wQN+T7hucY5bmrXQ ctWEwJ/WMaD5iVaTae0a9IqsJ8gGbDx901rd7Qkxj2KSD2S8I4r4U1GREJBrMMNIYUFr yKHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=Y8fpOx1lHam9DoAyom3Eo+rGp2qFykY2yeJeOtgf3Ew=; b=sA3w4EP6NfopOzk/HyCMdzQYwa1BBlAb0YBWEq0uf1XJgycuk4nWLHS2+xCZO7yCA7 GCrGbJ9C8Bmz/HFTCGPZCV83GbOrRgtrDvoPIUzqpKuHPkHVFz6YbNmUOJZhbnd5t28D Mi+Wy93d9H7qInv5Sla2MbZ8D6WjuNdu0jxDb9Th7tXRsqFKVGfdy/2EQl11tzQv5Vff kNWD8nmeifzEklqRPFvq619AQlrIK1fJT+9ZQhECcY5NjfOaKlWvhB8tMfAVG18B7A7x HSh24KAg6ah6aVoE6Bl6PxiGNFs6Sj1skOmDDsDCJ40XJJzQUOgYJqgR9GvkKzhhUY3T 02hQ== X-Gm-Message-State: APjAAAUBGkIOTfkjjH8788lkNkDibOh7Q6o8RUpVxGX/i8xzaSQiCIXM 5HMN8Cgc8PQGaR04+z2l97p1LG6umLA= X-Received: by 2002:a63:fa46:: with SMTP id g6mr506876pgk.382.1556750302695; Wed, 01 May 2019 15:38:22 -0700 (PDT) Received: from localhost.localdomain (97-113-189-189.tukw.qwest.net. [97.113.189.189]) by smtp.gmail.com with ESMTPSA id s85sm70603354pfa.23.2019.05.01.15.38.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 May 2019 15:38:21 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Wed, 1 May 2019 15:38:18 -0700 Message-Id: <20190501223819.8584-2-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190501223819.8584-1-richard.henderson@linaro.org> References: <20190501223819.8584-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::444 Subject: [Qemu-devel] [PATCH 1/2] configure: Distinguish ppc64 and ppc64le hosts X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-ppc@nongnu.org, mark.cave-ayland@ilande.co.uk, alex.bennee@linaro.org, david@gibson.dropbear.id.au Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" We cannot use the ppc64le host compiler to build ppc64(be) guest code. Clean up confusion between cross_cc_powerpc and cross_cc_ppc; make use of the cflags variable as well. Signed-off-by: Richard Henderson --- configure | 38 ++++++++++++++++++++++++++------------ 1 file changed, 26 insertions(+), 12 deletions(-) -- 2.17.1 diff --git a/configure b/configure index 60719ddcc5..234cb929ca 100755 --- a/configure +++ b/configure @@ -198,7 +198,7 @@ supported_kvm_target() { i386:i386 | i386:x86_64 | i386:x32 | \ x86_64:i386 | x86_64:x86_64 | x86_64:x32 | \ mips:mips | mipsel:mips | \ - ppc:ppc | ppc64:ppc | ppc:ppc64 | ppc64:ppc64 | \ + ppc:ppc | ppc64:ppc | ppc:ppc64 | ppc64:ppc64 | ppc64:ppc64le | \ s390x:s390x) return 0 ;; @@ -502,8 +502,11 @@ cross_cc_arm="arm-linux-gnueabihf-gcc" cross_cc_cflags_armeb="-mbig-endian" cross_cc_i386="i386-pc-linux-gnu-gcc" cross_cc_cflags_i386="" -cross_cc_powerpc="powerpc-linux-gnu-gcc" -cross_cc_powerpc="powerpc-linux-gnu-gcc" +cross_cc_ppc="powerpc-linux-gnu-gcc" +cross_cc_cflags_ppc="-m32" +cross_cc_ppc64="powerpc-linux-gnu-gcc" +cross_cc_cflags_ppc64="-m64" +cross_cc_ppc64le="powerpc64le-linux-gnu-gcc" enabled_cross_compilers="" @@ -700,7 +703,11 @@ elif check_define __sparc__ ; then fi elif check_define _ARCH_PPC ; then if check_define _ARCH_PPC64 ; then - cpu="ppc64" + if check_define _LITTLE_ENDIAN ; then + cpu="ppc64le" + else + cpu="ppc64" + fi else cpu="ppc" fi @@ -731,10 +738,14 @@ ARCH= # Note that this case should only have supported host CPUs, not guests. case "$cpu" in ppc|ppc64|s390|s390x|sparc64|x32|riscv32|riscv64) - cpu="$cpu" supported_cpu="yes" eval "cross_cc_${cpu}=\$host_cc" ;; + ppc64le) + ARCH="ppc64" + supported_cpu="yes" + cross_cc_ppc64le=$host_cc + ;; i386|i486|i586|i686|i86pc|BePC) cpu="i386" supported_cpu="yes" @@ -1525,8 +1536,8 @@ case "$cpu" in ppc) CPU_CFLAGS="-m32" LDFLAGS="-m32 $LDFLAGS" - cross_cc_powerpc=$cc - cross_cc_cflags_powerpc=$CPU_CFLAGS + cross_cc_ppc=$cc + cross_cc_cflags_ppc="$CPU_CFLAGS" ;; ppc64) CPU_CFLAGS="-m64" @@ -2379,7 +2390,7 @@ if test "$seccomp" != "no" ; then arm|aarch64) libseccomp_minver="2.2.3" ;; - ppc|ppc64|s390x) + ppc|ppc64|ppc64le|s390x) libseccomp_minver="2.3.0" ;; *) @@ -6160,7 +6171,7 @@ if { test "$cpu" = "i386" || test "$cpu" = "x86_64"; } && \ fi done fi -if test "$cpu" = "ppc64" && test "$targetos" != "Darwin" ; then +if test "$ARCH" = "ppc64" && test "$targetos" != "Darwin" ; then roms="$roms spapr-rtas" fi @@ -7345,7 +7356,7 @@ if test "$linux" = "yes" ; then i386|x86_64|x32) linux_arch=x86 ;; - ppc|ppc64) + ppc|ppc64|ppc64le) linux_arch=powerpc ;; s390x) @@ -7506,7 +7517,8 @@ case "$target_name" in ;; ppc) gdb_xml_files="power-core.xml power-fpu.xml power-altivec.xml power-spe.xml" - target_compiler=$cross_cc_powerpc + target_compiler=$cross_cc_ppc + target_compiler_cflags="$cross_cc_cflags_ppc" ;; ppc64) TARGET_BASE_ARCH=ppc @@ -7514,6 +7526,7 @@ case "$target_name" in mttcg=yes gdb_xml_files="power64-core.xml power-fpu.xml power-altivec.xml power-spe.xml power-vsx.xml" target_compiler=$cross_cc_ppc64 + target_compiler_cflags="$cross_cc_cflags_ppc64" ;; ppc64le) TARGET_ARCH=ppc64 @@ -7529,7 +7542,8 @@ case "$target_name" in TARGET_ABI_DIR=ppc echo "TARGET_ABI32=y" >> $config_target_mak gdb_xml_files="power64-core.xml power-fpu.xml power-altivec.xml power-spe.xml power-vsx.xml" - target_compiler=$cross_cc_ppc64abi32 + target_compiler=$cross_cc_ppc + target_compiler_cflags="$cross_cc_cflags_ppc" ;; riscv32) TARGET_BASE_ARCH=riscv From patchwork Wed May 1 22:38:19 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 163226 Delivered-To: patch@linaro.org Received: by 2002:a92:7e86:0:0:0:0:0 with SMTP id q6csp5034105ill; Wed, 1 May 2019 15:39:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqw5Q1zk/s4esCmd/Hr3qrfAscQxlP8u9EYpRo5FDCE9d4PpOTkmqm6IrfxdDlA04f3Yxp0L X-Received: by 2002:adf:b696:: with SMTP id j22mr316698wre.85.1556750345351; Wed, 01 May 2019 15:39:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556750345; cv=none; d=google.com; s=arc-20160816; b=QjyCdCpo97qdB/aIRCcJ1F0rg3jYrAq66tixZV5yFbLK0Lob6StGsXfPY9IbeUooUY bIcuHQ1iE069quFqVaF39E+oqGG+VedzkPnTo5tEIpJ7nilarQz3zqU2FqRdEhHdMw/0 R9TIU/NTnklPOg7vcPP7asbvvZaGSGppp2fkVl7YxDo1SeepkyIItiBT5URXlb6oA3Of 0IGEAUNH1PjVTOakKXDD2r0nQusg51zG83ZFkXU/jaWsqQvlUH7nf/V3rNXtti8TWoH1 z3WyDny10jthTZbmAkabRt/6uXsoCYgO+tSxIP24S3IDaRI/I09WD2U3kmFjFY2CahIy 9l8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:to:from:dkim-signature; bh=9sfstqLaMMWEwl1aQWTCXX6WCI6EEx8P/cSgyaZCh2g=; b=Yp8rkajj9hQsKJnDg/xpwiywvze14zdkflKXVvBB4DV52E3b/1yyNWYscJdanx575B CVox1Jro1F8AxZEc5Jao0DHk9YJ57W0Z8Jjc9huQuJqGI6F2TQpt4ANnZJzKLpiw/GmS 6hSzX2EfbcFoATDS0WiX1bEssBCaecVhGknwuIxflVRSDrhC5Nw4BGDVfkptdpNH3Esw lh2wf0MGoqJp1vvVKITcBd0e76RXkNKnv+wLRxAbw17xDCOUaMqSyCXntIWciZEiKeMq Z6yjDNbpy9VcwlWAWqy+CGJzoVfhBVCDt6S0Z0ACYNnWzX6KtFWMq4w8k0FSKvA6cfPn GoOg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=PfW8TG5v; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id g1si3794194wmc.163.2019.05.01.15.39.05 for (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 01 May 2019 15:39:05 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=PfW8TG5v; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([127.0.0.1]:42252 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hLxsW-000268-B1 for patch@linaro.org; Wed, 01 May 2019 18:39:04 -0400 Received: from eggs.gnu.org ([209.51.188.92]:46669) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hLxs2-0001z9-DM for qemu-devel@nongnu.org; Wed, 01 May 2019 18:38:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hLxs0-0007xf-5i for qemu-devel@nongnu.org; Wed, 01 May 2019 18:38:33 -0400 Received: from mail-pl1-x644.google.com ([2607:f8b0:4864:20::644]:37585) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hLxrw-0007vK-Lo for qemu-devel@nongnu.org; Wed, 01 May 2019 18:38:28 -0400 Received: by mail-pl1-x644.google.com with SMTP id z8so81149pln.4 for ; Wed, 01 May 2019 15:38:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=9sfstqLaMMWEwl1aQWTCXX6WCI6EEx8P/cSgyaZCh2g=; b=PfW8TG5vCgwE0WZhx28oQW45e6pNSyMH4yOpjZI0IUCMFD/AzQEYssF6P/mxaPRy15 rx4YY/mCy0SpQXm8BodXqWudaYZWZOMLI72ZSWLu8BAab6BcmrjfkWu1ZtL9eJhH49OR F9sn30eDHc5oUZf+2+Dp3ii+AlSmpx7B5O6HJAUdhdDyAABcmDVkSlEGknMuCcKazEVH y5lrmWo+UzTWf5wuOoCQ+BVPk9RwLLXntbyXyJGIrPUVSOWA/bNHhVyayi+YMaaVOoow phaYbwTRfc2FBf2DY+3onmG9zfFXPuA8TOwU4DywdpoZfj5YVKIvrobjAnbbn25B7q1H EJig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=9sfstqLaMMWEwl1aQWTCXX6WCI6EEx8P/cSgyaZCh2g=; b=OdEhRcB6r8Yt2TCnNQpPfLH9PwBQ0SBohGy6R3TLsXmkjWPAxO38IYm2efZ1arei3S 8tq5VX6yw5RD6eMKZ0OihRRD3JUOY3psEbZ3F4+RZ+EuLmXuyqACdQ1em3MoPIWL/YZz IYW9S5HEcXx+ci0FViTwMozA60E3DUpNH2BMrqIqYIGi1GaJYK8M/lPOFDJewT+agS0u 6k8UPA1uGBQhGaJUYVBuChztTrcVTtgRVm6+Lnvm5IbMetfUPyO0JLoAI5i44+Kjl3dJ lQWFXkP1yrV+SRInOgKKCEPjO4JOaCQJW+Ya75TNlYEzJp02LXr3su7oa5C/Gv9AYT30 Wmdg== X-Gm-Message-State: APjAAAWUkSgKQbfrJkewfbhbpsCEWP7iq1medvIN/c0s2XmCNWVoGqsu tJIotwF5lhvLoJtjnYJpnx21kcCvPUg= X-Received: by 2002:a17:902:2cc1:: with SMTP id n59mr179947plb.22.1556750303796; Wed, 01 May 2019 15:38:23 -0700 (PDT) Received: from localhost.localdomain (97-113-189-189.tukw.qwest.net. [97.113.189.189]) by smtp.gmail.com with ESMTPSA id s85sm70603354pfa.23.2019.05.01.15.38.22 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 May 2019 15:38:23 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Date: Wed, 1 May 2019 15:38:19 -0700 Message-Id: <20190501223819.8584-3-richard.henderson@linaro.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20190501223819.8584-1-richard.henderson@linaro.org> References: <20190501223819.8584-1-richard.henderson@linaro.org> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::644 Subject: [Qemu-devel] [PATCH 2/2] configure: Use quotes around uses of $CPU_CFLAGS X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-ppc@nongnu.org, mark.cave-ayland@ilande.co.uk, alex.bennee@linaro.org, david@gibson.dropbear.id.au Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" About half of the values to which CPU_CFLAGS is set have multiple space separated arguments. Signed-off-by: Richard Henderson --- configure | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) -- 2.17.1 Reviewed-by: Philippe Mathieu-Daudé Tested-by: Philippe Mathieu-Daudé diff --git a/configure b/configure index 234cb929ca..16bd4375d1 100755 --- a/configure +++ b/configure @@ -1543,37 +1543,37 @@ case "$cpu" in CPU_CFLAGS="-m64" LDFLAGS="-m64 $LDFLAGS" cross_cc_ppc64=$cc - cross_cc_cflags_ppc64=$CPU_CFLAGS + cross_cc_cflags_ppc64="$CPU_CFLAGS" ;; sparc) CPU_CFLAGS="-m32 -mv8plus -mcpu=ultrasparc" LDFLAGS="-m32 -mv8plus $LDFLAGS" cross_cc_sparc=$cc - cross_cc_cflags_sparc=$CPU_CFLAGS + cross_cc_cflags_sparc="$CPU_CFLAGS" ;; sparc64) CPU_CFLAGS="-m64 -mcpu=ultrasparc" LDFLAGS="-m64 $LDFLAGS" cross_cc_sparc64=$cc - cross_cc_cflags_sparc64=$CPU_CFLAGS + cross_cc_cflags_sparc64="$CPU_CFLAGS" ;; s390) CPU_CFLAGS="-m31" LDFLAGS="-m31 $LDFLAGS" cross_cc_s390=$cc - cross_cc_cflags_s390=$CPU_CFLAGS + cross_cc_cflags_s390="$CPU_CFLAGS" ;; s390x) CPU_CFLAGS="-m64" LDFLAGS="-m64 $LDFLAGS" cross_cc_s390x=$cc - cross_cc_cflags_s390x=$CPU_CFLAGS + cross_cc_cflags_s390x="$CPU_CFLAGS" ;; i386) CPU_CFLAGS="-m32" LDFLAGS="-m32 $LDFLAGS" cross_cc_i386=$cc - cross_cc_cflags_i386=$CPU_CFLAGS + cross_cc_cflags_i386="$CPU_CFLAGS" ;; x86_64) # ??? Only extremely old AMD cpus do not have cmpxchg16b. @@ -1582,13 +1582,13 @@ case "$cpu" in CPU_CFLAGS="-m64 -mcx16" LDFLAGS="-m64 $LDFLAGS" cross_cc_x86_64=$cc - cross_cc_cflags_x86_64=$CPU_CFLAGS + cross_cc_cflags_x86_64="$CPU_CFLAGS" ;; x32) CPU_CFLAGS="-mx32" LDFLAGS="-mx32 $LDFLAGS" cross_cc_i386=$cc - cross_cc_cflags_i386=$CPU_CFLAGS + cross_cc_cflags_i386="$CPU_CFLAGS" ;; # No special flags required for other host CPUs esac