From nobody Tue Feb 10 10:55:00 2026 Delivered-To: importer@patchew.org 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; Authentication-Results: mx.zohomail.com; dkim=fail; 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=fail(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1585941707; cv=none; d=zohomail.com; s=zohoarc; b=ICytOOqyJrvhFZEUZ4kxrHZbntFV4iUAj3/SzPEmNr1sjRdEA88rbvZCJ5ZiKHIEq29g3KVRnLNtga+UhfsV1J3dhnBEbCwTDgPYtO9QhQ8Y/9z+rPLvywz8Tsv5IUepK6sEoJWwB3kGxKsV0fT/tgTeTwwyXnvwQCiuPjcINIM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1585941707; 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=DyeIxRwQ3r5TyVkIrZoIov4F8W7a9xfnJ4qmjPwmv54=; b=ZsHFXd2b6Sc83+al1wfI9hdyO1KphIQfefSx60i25scMhf0SCZV7dSs5G/WyaQYSyrqZAxwoop4GyuDEw9GBhntjJ9dqO2gTw8SKZau4uOXDNqSI1/DDWhLGAtazfHE4KO5SUsAlwXc8M8S+0s432/rRlU3n/qHO1bzPFcbsnHA= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; 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=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1585941707215345.2384241909642; Fri, 3 Apr 2020 12:21:47 -0700 (PDT) Received: from localhost ([::1]:60308 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jKRsv-0007OL-SV for importer@patchew.org; Fri, 03 Apr 2020 15:21:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41006) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jKRjd-0003Yd-3j for qemu-devel@nongnu.org; Fri, 03 Apr 2020 15:12:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jKRjb-0002XD-2f for qemu-devel@nongnu.org; Fri, 03 Apr 2020 15:12:08 -0400 Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]:50578) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1jKRja-0002VC-Rw for qemu-devel@nongnu.org; Fri, 03 Apr 2020 15:12:07 -0400 Received: by mail-wm1-x342.google.com with SMTP id t128so8281919wma.0 for ; Fri, 03 Apr 2020 12:12:06 -0700 (PDT) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id 138sm12521183wmb.21.2020.04.03.12.11.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 03 Apr 2020 12:11:59 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id C200B1FF9B; Fri, 3 Apr 2020 20:11:51 +0100 (BST) 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 :mime-version:content-transfer-encoding; bh=DyeIxRwQ3r5TyVkIrZoIov4F8W7a9xfnJ4qmjPwmv54=; b=HE2pRBeHMSc4igIjt0XF95cKDtlhZawGnFUFuy+PmxcRSm6ybcvG6AndgkNiyUQLsQ pZTAd05urN571KW0zz+iPJDEc11dy2G7GRzBUc8W+Kd9rSg29IX6yKVIecL49VKH+t3V TPLSY2jOQeTxuxWQ0svd2j+62X7jTB+ivEGGBIFu8ItzWMqVqQ1bFOIz+3HJL8fpaTug 4JtYCLJ6nPDBGUQ9EA5r7PJq3qoPyk2da71tNy0kmQ0v4Ei9gdTZQqaaHqBVBiMQ4APA CG6QvsnJ1ERR1XOEEzKO65bSWPPwCJGwTHABZmQrtTD9GUfKCFUcEyT1jZJs9lNVKsgG 7oJw== 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=DyeIxRwQ3r5TyVkIrZoIov4F8W7a9xfnJ4qmjPwmv54=; b=CTgu84Zhs4AxIc+RwHJSRKNuXAikXfSSmY2Da141KwR4xGZWhG75wPFUWxEaBZ/LQp p6IfmXe6+CJEwCDlaZgux+W+Plc/GrFfl6TPSzzIDEfbJJavTIbe7CeonjzwBVbSsLJF qMo98xMpK/uYNfMefq6+8/uALbJiicvVW1VeGBWyFQtH5lwMN2MsV+YieIausCMppFUE mafzbp3XWZN+8XuZW2QmIn0mTXPBzfXLhCLw8cMdbrsmej5/p73rBrUL0WBg7hLzVyfQ 4xo8MKUE8TNYKPpSbPba38UA+BmzXKbc0+JJG4DFNfTOBdn1J/c8P0piyYvD6bxrO0oN h88A== X-Gm-Message-State: AGi0PubS9en2YmAr+dgO/lu1WphXgBMHyjfbHRxMOOcueIUCsuh4BFDl ePU1iMT8aZ8enIia+B7hkuYe6A== X-Google-Smtp-Source: APiQypIvw1puQJJjnCsbKKByRZbDMqtpqRGxztr0Fz8+nT5pVnISdCFDraYGA0IRhHOw9Ax0ppM2OQ== X-Received: by 2002:a1c:41d6:: with SMTP id o205mr9971548wma.122.1585941125880; Fri, 03 Apr 2020 12:12:05 -0700 (PDT) From: =?UTF-8?q?Alex=20Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v3 12/12] configure: Add -Werror to PIE probe Date: Fri, 3 Apr 2020 20:11:50 +0100 Message-Id: <20200403191150.863-13-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200403191150.863-1-alex.bennee@linaro.org> References: <20200403191150.863-1-alex.bennee@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::342 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?Alex=20Benn=C3=A9e?= , Richard Henderson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) From: Richard Henderson Without -Werror, the probe may succeed, but then compilation fails later when -Werror is added for other reasons. Shows up on windows, where the compiler complains about -fPIC. Signed-off-by: Richard Henderson Signed-off-by: Alex Benn=C3=A9e Message-Id: <20200401214756.6559-1-richard.henderson@linaro.org> Reviewed-by: Philippe Mathieu-Daud=C3=A9 Tested-by: Philippe Mathieu-Daud=C3=A9 --- configure | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 22870f38672..233c671aaa9 100755 --- a/configure +++ b/configure @@ -2119,7 +2119,7 @@ if compile_prog "-Werror -fno-pie" "-no-pie"; then fi =20 if test "$static" =3D "yes"; then - if test "$pie" !=3D "no" && compile_prog "-fPIE -DPIE" "-static-pie"; th= en + if test "$pie" !=3D "no" && compile_prog "-Werror -fPIE -DPIE" "-static-= pie"; then QEMU_CFLAGS=3D"-fPIE -DPIE $QEMU_CFLAGS" QEMU_LDFLAGS=3D"-static-pie $QEMU_LDFLAGS" pie=3D"yes" @@ -2132,7 +2132,7 @@ if test "$static" =3D "yes"; then elif test "$pie" =3D "no"; then QEMU_CFLAGS=3D"$CFLAGS_NOPIE $QEMU_CFLAGS" QEMU_LDFLAGS=3D"$LDFLAGS_NOPIE $QEMU_LDFLAGS" -elif compile_prog "-fPIE -DPIE" "-pie"; then +elif compile_prog "-Werror -fPIE -DPIE" "-pie"; then QEMU_CFLAGS=3D"-fPIE -DPIE $QEMU_CFLAGS" QEMU_LDFLAGS=3D"-pie $QEMU_LDFLAGS" pie=3D"yes" --=20 2.20.1