From patchwork Mon Nov 6 18:51:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 741434 Delivered-To: patch@linaro.org Received: by 2002:adf:fd90:0:b0:32d:baff:b0ca with SMTP id d16csp1255715wrr; Mon, 6 Nov 2023 10:54:05 -0800 (PST) X-Google-Smtp-Source: AGHT+IHqsB5vhRIOv3df5BX/LfKqpPREw+Mm8gei2PZ8NyMYbZOkr6Tvk7ET0rbrwytLQXLXDfVY X-Received: by 2002:a05:6214:b6f:b0:671:3f49:c8b4 with SMTP id ey15-20020a0562140b6f00b006713f49c8b4mr35413991qvb.3.1699296844804; Mon, 06 Nov 2023 10:54:04 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699296844; cv=none; d=google.com; s=arc-20160816; b=efF98j8BnHmDuNRcC1gOw82M95GJc15LQ8X/UJH96GQFHrJ0yxdZ3loSHr4FisfIRy ClpwYzOTtu2zdicvjvwtu2nO7F9Jya1wsUdA5ABjrpzenIM3GMYHKx8WDLa9tuKnhE45 N1eKyQxxTKdWG3vg79PftKw1BViWGklNqtq1E9AScPVRFOjcMXsQcDfhwg0ROz44wPoM 3EzlHJ/rlt9CcMJNpU+v004mcPOb4n7sR1zV+YVYfQOUXd0ZzWDgh+6geAq0bdLEPUtH LAvzwRFFkbRi5BzlKrCC0rbVhkZVXFADkz04EHJb8IwzRq3KECrW8Y0M6njBVjr4Lm72 4T3Q== 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:cc:to :from:dkim-signature; bh=MfrStN1bGPF7+o1NbmLsld1y0X5EN7/qz8z3IXc0LBY=; fh=evCjE205UAgwRAbsv9T0pnLB71HQo8Z0+pxdURI4LPA=; b=HPkJqnw89dcrvrTSCXfTRsiN2RNUMoaWz2j3pr3UWXoxRwAgL5i9gbFeiWArtH0yKv L0FMzuLCTg5atayhRKtejbAvnPrYVhZb6+uy2lVOKHhcBYrXTfja1KBaMmbyVDXK8YbB G4WWM8HfYcj0rLe+r0h9s2y/77G8gt7oAioQ68MRzzxohG4d5wY0Zk7o3z9NYyKNbsDS oO1VMBc8qzs9IOTR2mGWMzpFHPuF5QyZeOsBpusXSrxbv+56hg7FDMR1BicpSBA+ghla nXfma4zA/QMmcdUNCqdp7Kihe/yyk5pcmMCDgG7+8eBZLTBMPAsGt5Ap8yCIEcdbhB4i dk+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=q6M2wFtV; 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 q3-20020a0ce9c3000000b006709ee177f3si5848403qvo.231.2023.11.06.10.54.04 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 06 Nov 2023 10:54:04 -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=q6M2wFtV; 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] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1r04h8-00068q-1f; Mon, 06 Nov 2023 13:51:30 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1r04h6-00065O-4F for qemu-devel@nongnu.org; Mon, 06 Nov 2023 13:51:28 -0500 Received: from mail-lj1-x233.google.com ([2a00:1450:4864:20::233]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1r04h1-0000zh-VY for qemu-devel@nongnu.org; Mon, 06 Nov 2023 13:51:26 -0500 Received: by mail-lj1-x233.google.com with SMTP id 38308e7fff4ca-2c6ec78a840so64525641fa.1 for ; Mon, 06 Nov 2023 10:51:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1699296682; x=1699901482; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=MfrStN1bGPF7+o1NbmLsld1y0X5EN7/qz8z3IXc0LBY=; b=q6M2wFtV/7SEtWNC1A+fm29z6+plCopQwgBljfLhXfjaUR7StfozVf3sjVrEvtgS9u xZ9q2IlCFxE87FjAUOWOy8P9+er0XgnIzXRN3jCMDXVVnEs9MV54uaffaX7be48MHna6 7eTnqL9N2VEAvWH1tnWhyJa/rVQ2bw9hY3mXaXDVIOw0el5NzwDWXVsdnthkbhV9yVJx poyuToEtQH/ShpLrXAi4+sbIn32rFqpvERwX78brHDUv3PP6/APE5KIgT+OYT0g6EnHh Y4eecrsU/bWNHiLy5/Hec/h648QxTzro0HhSG1jrfRR/Hw3N/C5rDM/Z1xF9a7z22CHc ckZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699296682; x=1699901482; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=MfrStN1bGPF7+o1NbmLsld1y0X5EN7/qz8z3IXc0LBY=; b=VUvdBUvSmnjuJ0k0K7BM+1usl5UkP/R8WZ/xmXdVcLJ7U1CZ9oywfUP7uz+wCGBkeg TPSnPhDR2g3r9kb8V+dwZqHKWll+MXwieLb4iSyB4Yjk5EG8ZAalktWx8XKeif7FjoeP 7Zux+Zre6mKmAiSQaiBI9W7FilOBjVEEnLcB1lin8bwbDDt5+cF8ekqU39Gl1PNBcOJ9 FoesW6fkejqIiDyUE9oEB9i3jqP6HeBt9DZGpZm83y0Ke9lbBQwGgzD1o1g0vKxFq7X3 mnXWQrTR5FD27DpXP5CvZom/fRaNZEmxGUSCSq06Vc6xCIfrI4ewJCY5pzT7NYu2HLB5 pQvA== X-Gm-Message-State: AOJu0YxPFDsC5WkiZKbqbumgllR8XmTygNFsN5JNo8Qx3fEwdxSM0qLx J50zDBsNcymu/oIcXewfkj6JXg== X-Received: by 2002:a2e:b4ab:0:b0:2c5:3139:2d04 with SMTP id q11-20020a2eb4ab000000b002c531392d04mr23139936ljm.47.1699296682423; Mon, 06 Nov 2023 10:51:22 -0800 (PST) Received: from draig.lan ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id u7-20020a05600c138700b0040836519dd9sm13208168wmf.25.2023.11.06.10.51.15 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Nov 2023 10:51:19 -0800 (PST) Received: from draig.lan (localhost [IPv6:::1]) by draig.lan (Postfix) with ESMTP id 8AED6655DF; Mon, 6 Nov 2023 18:51:13 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Peter Maydell , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Laurent Vivier , =?utf-8?q?Alex_Benn=C3=A9e?= , Mahmoud Mandour , Cleber Rosa , Wainer dos Santos Moschetta , Paolo Bonzini , Thomas Huth , Beraldo Leal , Alexandre Iooss , John Snow , =?utf-8?q?Daniel_P=2E_Berrang=C3=A9?= , Chris Wulff , Marek Vasut , Richard Henderson , Greg Manning Subject: [PATCH 12/22] configure: tell meson and contrib_plugins about DLLTOOL Date: Mon, 6 Nov 2023 18:51:02 +0000 Message-Id: <20231106185112.2755262-13-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231106185112.2755262-1-alex.bennee@linaro.org> References: <20231106185112.2755262-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::233; envelope-from=alex.bennee@linaro.org; helo=mail-lj1-x233.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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 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-bounces+patch=linaro.org@nongnu.org To cleanly handle cross-building we need to export the details of dlltool into meson's list of cross binaries and into the contrib/plugins/ make configuration. Signed-off-by: Alex Bennée Cc: Paolo Bonzini Cc: Greg Manning Reviewed-by: Paolo Bonzini Reviewed-by: Philippe Mathieu-Daudé --- configure | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configure b/configure index f1456f6123..cd6c521bd8 100755 --- a/configure +++ b/configure @@ -309,6 +309,7 @@ fi ar="${AR-${cross_prefix}ar}" as="${AS-${cross_prefix}as}" ccas="${CCAS-$cc}" +dlltool="${DLLTOOL-${cross_prefix}dlltool}" objcopy="${OBJCOPY-${cross_prefix}objcopy}" ld="${LD-${cross_prefix}ld}" ranlib="${RANLIB-${cross_prefix}ranlib}" @@ -1659,6 +1660,9 @@ echo "SRC_PATH=$source_path/contrib/plugins" >> contrib/plugins/$config_host_mak echo "PKG_CONFIG=${pkg_config}" >> contrib/plugins/$config_host_mak echo "CC=$cc $CPU_CFLAGS" >> contrib/plugins/$config_host_mak echo "CFLAGS=${CFLAGS-$default_cflags} $EXTRA_CFLAGS" >> contrib/plugins/$config_host_mak +if test "$targetos" = windows; then + echo "DLLTOOL=$dlltool" >> contrib/plugins/$config_host_mak +fi if test "$targetos" = darwin; then echo "CONFIG_DARWIN=y" >> contrib/plugins/$config_host_mak fi @@ -1764,6 +1768,7 @@ if test "$skip_meson" = no; then test -n "$cxx" && echo "cpp = [$(meson_quote $cxx $CPU_CFLAGS)]" >> $cross test -n "$objcc" && echo "objc = [$(meson_quote $objcc $CPU_CFLAGS)]" >> $cross echo "ar = [$(meson_quote $ar)]" >> $cross + echo "dlltool = [$(meson_quote $dlltool)]" >> $cross echo "nm = [$(meson_quote $nm)]" >> $cross echo "pkgconfig = [$(meson_quote $pkg_config)]" >> $cross echo "pkg-config = [$(meson_quote $pkg_config)]" >> $cross @@ -1869,6 +1874,7 @@ preserve_env CC preserve_env CFLAGS preserve_env CXX preserve_env CXXFLAGS +preserve_env DLLTOOL preserve_env LD preserve_env LDFLAGS preserve_env LD_LIBRARY_PATH