From nobody Mon Feb 9 10:32:48 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1611346685; cv=none; d=zohomail.com; s=zohoarc; b=jSBRRmipOwJF5f/Xel/0Ip2u1at7nV1x7LT85g2jUjNacOhmEj6jUb63+euwrahBlP4PLyH/f+uioJNN9A3a7Xb2WGY1tcOap+ajzd+pk7ntt8sZYJ11gWgW6sE07hm2Lmy32/IPjt0/29WN9XilsEyc0fHsxfsebL8EAVFUfPU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1611346685; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=01jOHlrAizpaDPxT12d+5+vOSGTC56CIKtFWQ2QTb8E=; b=Z4oUHQKGJKAksdBTCIN/rWErj6fDM0B6VCZ2nihTrTCLEXuFPjT0lf8mVvUQ4v2BdlbkI4FNgwSWKwFx6Rs7/hsrF+bXP9t4jCklCW6H4v2TDfiTC4N+Ay/+QIbj3Qx/yzoJR83Lta0uH0ph50ql0z5xp1ZSjrzseAbdipenPTo= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1611346685747820.7020365447631; Fri, 22 Jan 2021 12:18:05 -0800 (PST) Received: from localhost ([::1]:35252 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l32se-0004yf-MB for importer@patchew.org; Fri, 22 Jan 2021 15:18:04 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:50458) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l32m9-0004o4-Dc for qemu-devel@nongnu.org; Fri, 22 Jan 2021 15:11:21 -0500 Received: from mail-pg1-f178.google.com ([209.85.215.178]:35470) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l32m7-0004ZO-QO for qemu-devel@nongnu.org; Fri, 22 Jan 2021 15:11:21 -0500 Received: by mail-pg1-f178.google.com with SMTP id n7so4569778pgg.2 for ; Fri, 22 Jan 2021 12:11:19 -0800 (PST) Received: from localhost.localdomain ([73.93.152.129]) by smtp.gmail.com with ESMTPSA id u12sm8741839pgi.91.2021.01.22.12.11.17 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 22 Jan 2021 12:11:17 -0800 (PST) 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:mime-version:content-transfer-encoding; bh=01jOHlrAizpaDPxT12d+5+vOSGTC56CIKtFWQ2QTb8E=; b=sCGh2+RbouDK2koYmDYmWdwl8RLOcFkNQ6v8xdrXy1Ecak70/L/3zP7Culs1k2cBtu qt2r4V1ML58E31rJXHLK47ES5q+oBItrWGkaei9VYN3nzEmibR/wuvsq2G4J3E30jaW2 71oG0VkEZjlKSojGB6VAoMUPTD54gVO0KHToUgwK1L8k60JeVx0Lc8wsnJIT9o1H6EJv sytH0o1BHgCstH44l8FN5P7Zz4DpGF9SPJeE0eBjnujFweLZGMYhS5MuhaVxFoU2MNeL Bj27E3hCSTSWwjK5tKuBgxU15/DOzGK/JkF4Wct4sCqV9bM5J6FjB2i3FgMkmgJ4xoOA JHuQ== X-Gm-Message-State: AOAM531uNXokt+nKDgLcOvLqSbBncDNxA25Ho0X2xRQOGKNyajgYH4l2 HY40dgI2s4o0dow5vsH6gV4Cw8LcKmc= X-Google-Smtp-Source: ABdhPJz28lWzUzpz9iA0RY6T1LHup14VYA3XVUVEckKn2+3xtasGUJcKbIamcPIaUnk0FTxGokLChQ== X-Received: by 2002:a62:7c86:0:b029:1b7:cf7b:7d79 with SMTP id x128-20020a627c860000b02901b7cf7b7d79mr6668419pfc.48.1611346278161; Fri, 22 Jan 2021 12:11:18 -0800 (PST) From: Joelle van Dyne To: qemu-devel@nongnu.org Subject: [PATCH v7 02/11] configure: cross-compiling with empty cross_prefix Date: Fri, 22 Jan 2021 12:11:04 -0800 Message-Id: <20210122201113.63788-3-j@getutm.app> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20210122201113.63788-1-j@getutm.app> References: <20210122201113.63788-1-j@getutm.app> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=209.85.215.178; envelope-from=osy86github@gmail.com; helo=mail-pg1-f178.google.com X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Joelle van Dyne Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" The iOS toolchain does not use the host prefix naming convention. So we need to enable cross-compile options while allowing the PREFIX to be blank. Reviewed-by: Philippe Mathieu-Daud=C3=A9 Signed-off-by: Joelle van Dyne --- configure | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/configure b/configure index acf7f7414a..32be5d225d 100755 --- a/configure +++ b/configure @@ -238,6 +238,7 @@ cpu=3D"" iasl=3D"iasl" interp_prefix=3D"/usr/gnemul/qemu-%M" static=3D"no" +cross_compile=3D"no" cross_prefix=3D"" audio_drv_list=3D"" block_drv_rw_whitelist=3D"" @@ -469,6 +470,7 @@ for opt do optarg=3D$(expr "x$opt" : 'x[^=3D]*=3D\(.*\)') case "$opt" in --cross-prefix=3D*) cross_prefix=3D"$optarg" + cross_compile=3D"yes" ;; --cc=3D*) CC=3D"$optarg" ;; @@ -1696,7 +1698,7 @@ $(echo Deprecated targets: $deprecated_targets_list |= \ --target-list-exclude=3DLIST exclude a set of targets from the default t= arget-list =20 Advanced options (experts only): - --cross-prefix=3DPREFIX use PREFIX for compile tools [$cross_prefix] + --cross-prefix=3DPREFIX use PREFIX for compile tools, PREFIX can be b= lank [$cross_prefix] --cc=3DCC use C compiler CC [$cc] --iasl=3DIASL use ACPI compiler IASL [$iasl] --host-cc=3DCC use C compiler CC [$host_cc] for code run at @@ -6403,7 +6405,7 @@ if has $sdl2_config; then fi echo "strip =3D [$(meson_quote $strip)]" >> $cross echo "windres =3D [$(meson_quote $windres)]" >> $cross -if test -n "$cross_prefix"; then +if test "$cross_compile" =3D "yes"; then cross_arg=3D"--cross-file config-meson.cross" echo "[host_machine]" >> $cross if test "$mingw32" =3D "yes" ; then --=20 2.28.0