From nobody Tue Feb 10 05:42:00 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1665676729; cv=none; d=zohomail.com; s=zohoarc; b=ELTsgj+r2YfgZRB0VGfnKCrhD8JZUM7hLez3p8i6ysmNdG/CW4uegJacqGMKd+zEE45opvZjqKwOXrtPCgceewtj134AdxgOkPSBLjgyG7sjYJG6b+urfZNm8fgYKcWshSZpLH6SxRMFxQ7uh52adb3HuVmFTsvsYkSSr+ilYYc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1665676729; 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=5ePAv0VhEcbjKAsqareEHGiLcH68DCxtUNvUnEj2ges=; b=P5VX4mE6UxDgigNcEDwUPylSxE93HtL25bSUJX+XuzHuYFj429pjL952Wg1gspe/xzFJ6ZJh3zQ5xRmcP1pKInSYgRXtcob1qtQYPsZjqYluKjntfHIIEYLS3BeudnDp+n6877+8zX2UU2x1wLLpkQ+btO7aVORzN1mdLTuP6Sw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1665676729948130.9920296323004; Thu, 13 Oct 2022 08:58:49 -0700 (PDT) Received: from localhost ([::1]:54180 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oj0bg-0003Cl-I0 for importer@patchew.org; Thu, 13 Oct 2022 11:58:48 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54126) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oj0QW-0006Aw-D1 for qemu-devel@nongnu.org; Thu, 13 Oct 2022 11:47:16 -0400 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]:44670) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oj0QU-0006p1-Jz for qemu-devel@nongnu.org; Thu, 13 Oct 2022 11:47:16 -0400 Received: by mail-wm1-x332.google.com with SMTP id bg9-20020a05600c3c8900b003bf249616b0so1747528wmb.3 for ; Thu, 13 Oct 2022 08:47:14 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id g2-20020a05600c000200b003b49ab8ff53sm4683754wmc.8.2022.10.13.08.47.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Oct 2022 08:47:10 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 4BE1B1FFBD; Thu, 13 Oct 2022 16:47:06 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; 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=5ePAv0VhEcbjKAsqareEHGiLcH68DCxtUNvUnEj2ges=; b=Lf4sfa6zjjH/7A/lC1mrZq13RNjgBAkDRvwG1chi+I9w/3jXScSgsy4582RkU+q0zn xHNKKw+nMv6WXR94Ida74UmzwgpSg+0989zTldQ2pllSaOhtEiiVmgpVHjuHXpoqvFlU D3M7YAGoeQvA52HabI10K7xk/BEoWjo3NbQSBFDe7652EqudDGr43IdxGwxGJolpgLDa eFhEKDqXeOHipW8id2YZGcT0nf2igNSz2+gqaYBuKT1oYvjMbc+9OlcG9IG9esvr5Khz T7wkC1PgB7JxbMT3hq2SSr1ceB44p9vUKDaL3bssKtPNMaMm6BP43zQFV+YgxsDEAbeE Rrmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=5ePAv0VhEcbjKAsqareEHGiLcH68DCxtUNvUnEj2ges=; b=tOjG6AUwfD6hqmGVgrsKOue767RtPsTd2T19HHjo2ba9RUcW8IGMXA+74vMXI9wzYc ryDiPQnZ4cJFzSXLN/7SGvOWgP4DCHfXJuP9wO/WWOOZ4IVr60Y0vQjy4lsdACQVvcYS 5AC+6fCKhBmDAW3tPWaqggSAA3FmIaS5Mjxb6NGkaC1BF6yJhcEueclhgfub2Veywpbu a6mn8p3D1vQMnmIml7cjDAvjjwlivupEAQeFZZYRc/qVzZzW0qFOzYDBwdSysil7Z2j/ K9hkQHT0WXSX3KAbqR8PSWWvnDp29EUWAkBjcXR0E8VDknFbmkQsRjUU2A02jsa4kWfy DOTw== X-Gm-Message-State: ACrzQf3ICR0fiSF+7IrIf7ly4t87uF5WBxI/ejL/NVE5m76YrLV6kJBg 3O3l0SldE4WCno2F7gHCwiM8jQ== X-Google-Smtp-Source: AMsMyM7MjNI3XKKL9ueNcChRstXacF8fwbr1nZZe4YZR+MOdH/avRG45r64g7v7rU5QDQ/VnIncgRQ== X-Received: by 2002:a05:600c:1987:b0:3b4:9b03:c440 with SMTP id t7-20020a05600c198700b003b49b03c440mr341478wmq.14.1665676032818; Thu, 13 Oct 2022 08:47:12 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: fam@euphon.net, berrange@redhat.com, f4bug@amsat.org, aurelien@aurel32.net, pbonzini@redhat.com, stefanha@redhat.com, crosa@redhat.com, =?UTF-8?q?Alex=20Benn=C3=A9e?= Subject: [PATCH v2 5/7] configure: fix the --enable-static --disable-pie case Date: Thu, 13 Oct 2022 16:47:03 +0100 Message-Id: <20221013154705.1846261-6-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221013154705.1846261-1-alex.bennee@linaro.org> References: <20221013154705.1846261-1-alex.bennee@linaro.org> 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=2a00:1450:4864:20::332; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x332.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.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1665676730469100001 The previous tweak was incomplete as it missed a leg. Fixes: abafb64b6d (configure: explicitly set cflags for --disable-pie) Signed-off-by: Alex Benn=C3=A9e --- configure | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 246651f25d..bab4e6df9f 100755 --- a/configure +++ b/configure @@ -1327,6 +1327,8 @@ static THREAD int tls_var; int main(void) { return tls_var; } EOF =20 +# Meson currently only handles pie as a boolean for now so if we have +# explicitly disabled PIE we need to extend our cflags because it wont. if test "$static" =3D "yes"; then if test "$pie" !=3D "no" && compile_prog "-Werror -fPIE -DPIE" "-static-= pie"; then CONFIGURE_CFLAGS=3D"-fPIE -DPIE $CONFIGURE_CFLAGS" @@ -1335,13 +1337,12 @@ if test "$static" =3D "yes"; then error_exit "-static-pie not available due to missing toolchain support" else pie=3D"no" + QEMU_CFLAGS=3D"-fno-pie -no-pie $QEMU_CFLAGS" fi elif test "$pie" =3D "no"; then if compile_prog "-Werror -fno-pie" "-no-pie"; then CONFIGURE_CFLAGS=3D"-fno-pie $CONFIGURE_CFLAGS" CONFIGURE_LDFLAGS=3D"-no-pie $CONFIGURE_LDFLAGS" - # Meson currently only handles pie as a boolean for now so if we have - # explicitly disabled PIE we need to extend our cflags because it wont. QEMU_CFLAGS=3D"-fno-pie -no-pie $QEMU_CFLAGS" fi elif compile_prog "-Werror -fPIE -DPIE" "-pie"; then --=20 2.34.1