From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id IC8qJ47V62ZZXwAAe85BDQ:P1 (envelope-from ) for ; Thu, 19 Sep 2024 07:41:02 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id IC8qJ47V62ZZXwAAe85BDQ (envelope-from ) for ; Thu, 19 Sep 2024 09:41:02 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b="M/gpkoib"; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b="h9jY/0S5"; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1726731662; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=vZEMZnvp8gunRSESn7G/H1Kq6FZxuSbQlnGMtS/+Ak0=; b=QwHiR7VFJu2kzmgBdKETj3YT53Mo6BvVJDgZMVaz1VWihxnBo5jFHaksRJNPNqXq+z6H67 nHlkFffi6bKmkpvMl0ODtynoyKLFDEKZshBEjS01YhCarSQXdsAMgvkYhhjTkdWisdkx/b U2Y8WCCpcULTL80oL2k30qCRefyEAS2xIeI9dsqdVNLdEN4dTA92XnMJQfsmiL43bOOxLp 9zlW0kbgMBTDwvLKZoMVnVPdmNscEtXsXgEO+8G10Nsa0AF1VYUouXlaTee+PfB1S9PHBt mKupE4YLde8spQQsaQGLOrnyLoOs3al2GJDj8bAJLvh7ZE0o5GDaJc+nYLlizw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b="M/gpkoib"; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b="h9jY/0S5"; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=gnu.org ARC-Seal: i=1; s=key1; d=yhetil.org; t=1726731662; a=rsa-sha256; cv=none; b=kw7zvFyf//2uFoZ1zuXlUj42AFZPYIVrK5JAbh94BAgJ5Jp+F9GITrnyYurnDktK7bKzDU FYD+N3461Q8eceYhgOqq850GuIwXgjCa4GhX9HGj/5hvLUw+/I8A8gqXK892vNnFaSAXb8 IdGXybvZSdWRKZfQC5SC6MOaZSejlxRwGUKYdkNGPUhBteCVMzSxAmSWylZPGwSOXA5Sgt dJ9/MypZTLFJ3wSu4RxcGFfQfd/UtXUtX4en6ltZerYD90djj7HG+DrtQsAiU4oz6qsWvQ SRwvnLKhavXAOt3bJUUitZoeU2kTnIwYCyqWlnJj6y/S8uMbIALKzNRK8EOY0w== Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 6AC49769EF for ; Thu, 19 Sep 2024 09:40:59 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1srBmR-0003iq-IV; Thu, 19 Sep 2024 03:40:47 -0400 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 1srBmP-0003i2-Eu for guix-patches@gnu.org; Thu, 19 Sep 2024 03:40:45 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1srBmP-0002XY-5S; Thu, 19 Sep 2024 03:40:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=vZEMZnvp8gunRSESn7G/H1Kq6FZxuSbQlnGMtS/+Ak0=; b=M/gpkoibFoGZtpIfWLTdhGQBVOhCtxO4q7IMOLjO3QNqhm1g6cw5oohrpvNX/0IAWnPlJn0I+pczKTSczSl7Td3VOSgOyfDdgVDIHJukhuK5KikokkdtSol3/ZdsUEbr87k1L2tdFkJjh9g/dVTKoDY9MNiRcvcet7EhrSmpTstp+cHLOJT59cz9L0MQb3d499vaVRXEZ8c15VSfWzasCuW1HfWGTVNVkaXyz/8TM6S7XU7Pfj/bHqu4wNFdr8fE8dzVIX5F/zj2MhZ7ba5Upg1xoyuWLYRwnZfBiXwI1uBeOfo5IN3lnMZ3mjsNhYM5Ig+s1DZFGi/mziZsgYzJHg==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1srBmg-0005ET-6x; Thu, 19 Sep 2024 03:41:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#73190] [PATCH v2 2/3] gnu: make-libiberty: Build with -fPIC. Resent-From: =?UTF-8?Q?Nguy=E1=BB=85n?= Gia Phong Original-Sender: "Debbugs-submit" Resent-CC: andreas@enge.fr, ludo@gnu.org, guix-patches@gnu.org Resent-Date: Thu, 19 Sep 2024 07:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 73190 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 73190@debbugs.gnu.org Cc: =?UTF-8?Q?Nguy=E1=BB=85n?= Gia Phong , Andreas Enge , Ludovic =?UTF-8?Q?Court=C3=A8s?= X-Debbugs-Original-Xcc: Andreas Enge , Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 73190-submit@debbugs.gnu.org id=B73190.172673164420068 (code B ref 73190); Thu, 19 Sep 2024 07:41:02 +0000 Received: (at 73190) by debbugs.gnu.org; 19 Sep 2024 07:40:44 +0000 Received: from localhost ([127.0.0.1]:59733 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1srBmO-0005Db-H9 for submit@debbugs.gnu.org; Thu, 19 Sep 2024 03:40:44 -0400 Received: from layka.disroot.org ([178.21.23.139]:56284) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1srBmM-0005DU-Vx for 73190@debbugs.gnu.org; Thu, 19 Sep 2024 03:40:43 -0400 Received: from mail01.disroot.lan (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 5F87A23DB9; Thu, 19 Sep 2024 09:40:25 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from layka.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavis, port 10024) with ESMTP id QXr0_-aGHUZL; Thu, 19 Sep 2024 09:40:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1726731624; bh=hmsa9AgpY4+VrqKRpYqeL/OMJv+cuNhI9If11tDBi70=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=h9jY/0S5gFQNbNWPgMhzTniWQKbWx0FgPIsSh5PUUBQbob9pUK9ODmEXvpwLvZRJs 3fUNwFpIoW54vebYGcRn559uJUPPLuCW8GBftaoWHDJ7nZuImRWL5fX2MavZGCYUeq 7a2YtsttfTNIFg135pzXPUUSXkk86YEYX/8yIq7aLSHdmY/DT8aTdATLxHR08E0J9B FwQcvKBSCgrLyJV2BE8W53ib0Oe7iQ3+DvMSWOuRBK1zixAzVWCSzOPYAcMEwKfq8a bCC+fFZAJct3ru1EWIH8WVaTHCwp09IQMXJ1b6Kntg7fQdbwu8YVfEVgNLLHwvo317 B72S53cmlB2qA== Date: Thu, 19 Sep 2024 16:38:38 +0900 Message-ID: <046637012d1dd689b9ffe105a4c33f3eaa14ada7.1726731518.git.mcsinyx@disroot.org> In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-to: =?UTF-8?Q?Nguy=E1=BB=85n?= Gia Phong X-ACL-Warn: , =?utf-8?q?Nguy=E1=BB=85n_Gia_Phong_via_Guix-patches?= From: guix-patches--- via Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -4.41 X-Spam-Score: -4.41 X-Migadu-Queue-Id: 6AC49769EF X-Migadu-Scanner: mx10.migadu.com X-TUID: K7l4m3HEp1D9 Since iberty is a static library, linking a PIC-enabled target to it requires it to also have been built with PIC. (The target is Dyninst in this case.) This `-fPIC' flag is appended to the default CFLAGS of `-O2 -g'. * gnu/packages/gcc.scm (make-libiberty)[arguments]: Adjust make-flags to add -fPIC to CFLAGS. Change-Id: I155045d05f4434cb68be933a95b7bc9fdec98818 --- gnu/packages/gcc.scm | 1 + 1 file changed, 1 insertion(+) diff --git a/gnu/packages/gcc.scm b/gnu/packages/gcc.scm index 164c8d782ca3..7fceb4be963f 100644 --- a/gnu/packages/gcc.scm +++ b/gnu/packages/gcc.scm @@ -1065,6 +1065,7 @@ (define (make-libiberty gcc) (name "libiberty") (arguments `(#:out-of-source? #t + #:make-flags '("CFLAGS=-O2 -g -fPIC") #:phases (modify-phases %standard-phases (add-before 'configure 'chdir -- 2.46.0