From patchwork Fri Jan 29 10:59:39 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 373294 Delivered-To: patch@linaro.org Received: by 2002:a02:a60d:0:0:0:0:0 with SMTP id c13csp2091661jam; Fri, 29 Jan 2021 03:05:53 -0800 (PST) X-Google-Smtp-Source: ABdhPJzyHJRQhWbZQBUsVVJcgRdXXXwAA3eON9qICztt6oUB1m1euPz5l/YDIcDD+tomHfBpfseh X-Received: by 2002:a25:2505:: with SMTP id l5mr6518976ybl.292.1611918353796; Fri, 29 Jan 2021 03:05:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1611918353; cv=none; d=google.com; s=arc-20160816; b=hydR6cTIdU9NBCP7o3ywSFcuJ/Owr3biSyNGBLWW7kbthNExfFfzxcLqCXAJ2IaT6Q pFyy4DwZwPKlzG6Deah1jskKjCrbvZUxAKSQgo1s7qCpZsksjAT1Z/jSu9ECl7Imsjmy AZfRxp0SA4ZP3FSU01tU0R6lRy4wwRi/smbm+CGg/F6LY3a4S5qO7mXbCWDy4XsqdXIJ LVCXjPMz4jQE6aP+JJqJ6LXOYM9ZdKyylTFCBZhQbXbEPaL15pi8HFbhP8bujbQj6bfC Qe8IArvVreuqVjQv0Y2GPhizzcWgJVm87tyVvDZ04Qpb1xEdl+162pN9+3xnbwzA3yUc GfjQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=rIuJfM2H38AD9rjbnhVNMilR5WET5VmWsDJu8FbR7Kk=; b=C144JWRTTZUddtMujppIgCp+IKEmv+LDb8+yMulWJJqeC8XqpyVEuxzX/BwKi4lKmu 9/yvNGvcXO1kkZaVWd25pnwJatF4IZRWJJOiWkitYZfiYOqipjsnqu0ShXPjJjI8Q0KN R3/eeEONK7XgCRdc2WAdVlRtbYoU2OF27xh+GFV1UE7H4PIFeVg4VVwIyE9R2w6SfaE6 C3uNQYY0S4NpZlO4uR+TIuqZ7FGt+V0/D9ZEWAEqFVYKCxZA/KNJfoEq+76v+4WS7r1x 1trfyIY8Mfcjhp9s6TS5FkhZhFvAIkP0MCNTa+4h7JRuZ/rTUh7AiL8w49PXplgNHd2R qIuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=O0tlptxZ; 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=pass (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 65si8365256ybh.65.2021.01.29.03.05.53 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 29 Jan 2021 03:05:53 -0800 (PST) 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=pass header.i=@linaro.org header.s=google header.b=O0tlptxZ; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:47630 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1l5Rb7-00036v-9u for patch@linaro.org; Fri, 29 Jan 2021 06:05:53 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:59708) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1l5RW6-0004Ss-0d for qemu-devel@nongnu.org; Fri, 29 Jan 2021 06:00:42 -0500 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]:41456) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1l5RVt-0006zJ-VS for qemu-devel@nongnu.org; Fri, 29 Jan 2021 06:00:41 -0500 Received: by mail-wr1-x429.google.com with SMTP id p15so8367314wrq.8 for ; Fri, 29 Jan 2021 03:00:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:subject:date:message-id:in-reply-to:references:mime-version :content-transfer-encoding; bh=rIuJfM2H38AD9rjbnhVNMilR5WET5VmWsDJu8FbR7Kk=; b=O0tlptxZMfjsEhViqgb9I6N859ZACKi777y3RTVFD0ldaxGLvxbJNYPhY86TxjSRsT qiNQDk0g50I649uiFBB6Z5GGspx2DS4SVdrr7pDUcvF12zAx1h8pE0SVz2EO3rEJPWpO 8QVrsLdVPLwMTSpNLzdetIRskl7tOqP9tDC9jZp2IIcsi7oK4JT6PrGVAQniqRELeAUo 6xlASO8DBudY455wPa30KcmO/rzNIgpxr6O6zUvDmwVOskD7Bq9P19RJp2oERtdED9FL 2VVfDJ7ElvVD4ACV56fBBrSc2Q1E9dTZbqEjoobQUgjROn0PiGh2W/4Gzf0EpgWDWTXW ckUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=rIuJfM2H38AD9rjbnhVNMilR5WET5VmWsDJu8FbR7Kk=; b=HRo8LSBGPY0oCXPjVfwUWYJ7giQ7yNOCf9f52W0tJWy5/wabO7vmaXNz0F/nQNVHtl aTg23W5eqaCXBHSeTxlbSPegsnWbEjgMRdW9HiHuV7Dd39MXBk/pNn8/8Si03hmwXIDp AX5VRsPSi78zook0wvnIIuzmg8rz0RF5QWSz+zsOeitQT1fEfJnW+ewoeXSAquqoLNGG lfwVfvh/0r3ztTfPnjmSwVs5+FIhz2Wh0dKHHEJEIDOEyxMTYHqZ9ojzsByeilxJWrQY LgYPyleH6IEORRRXEKRld5ydVJpwamnkNjIW1AU2gK1SmtAn+HhqmvrL5lZ7uIYx4xOX 4S/A== X-Gm-Message-State: AOAM5331WfDKBqQ5DyXSat5YfSby9qi/L/m4uJHchS1Ke/yqW137kn4P /8WFA6/SpBfrc8DEb4H/TfEK5KL2t+1KJQ== X-Received: by 2002:a05:6000:1105:: with SMTP id z5mr3874614wrw.15.1611918026940; Fri, 29 Jan 2021 03:00:26 -0800 (PST) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [81.2.115.148]) by smtp.gmail.com with ESMTPSA id w20sm9268761wmm.12.2021.01.29.03.00.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Jan 2021 03:00:26 -0800 (PST) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 13/46] darwin: fix cross-compiling for Darwin Date: Fri, 29 Jan 2021 10:59:39 +0000 Message-Id: <20210129110012.8660-14-peter.maydell@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210129110012.8660-1-peter.maydell@linaro.org> References: <20210129110012.8660-1-peter.maydell@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::429; envelope-from=peter.maydell@linaro.org; helo=mail-wr1-x429.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham 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: , Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" From: Joelle van Dyne Add objc to the Meson cross file as well as detection of Darwin. Reviewed-by: Peter Maydell Signed-off-by: Joelle van Dyne Reviewed-by: Philippe Mathieu-Daudé Message-id: 20210126012457.39046-8-j@getutm.app Signed-off-by: Peter Maydell --- configure | 4 ++++ 1 file changed, 4 insertions(+) -- 2.20.1 diff --git a/configure b/configure index cd44b21149e..e520a434065 100755 --- a/configure +++ b/configure @@ -6282,6 +6282,7 @@ echo "cpp_link_args = [${LDFLAGS:+$(meson_quote $LDFLAGS)}]" >> $cross echo "[binaries]" >> $cross echo "c = [$(meson_quote $cc)]" >> $cross test -n "$cxx" && echo "cpp = [$(meson_quote $cxx)]" >> $cross +test -n "$objcc" && echo "objc = [$(meson_quote $objcc)]" >> $cross echo "ar = [$(meson_quote $ar)]" >> $cross echo "nm = [$(meson_quote $nm)]" >> $cross echo "pkgconfig = [$(meson_quote $pkg_config_exe)]" >> $cross @@ -6300,6 +6301,9 @@ if test "$cross_compile" = "yes"; then if test "$linux" = "yes" ; then echo "system = 'linux'" >> $cross fi + if test "$darwin" = "yes" ; then + echo "system = 'darwin'" >> $cross + fi case "$ARCH" in i386|x86_64) echo "cpu_family = 'x86'" >> $cross