From patchwork Thu Sep 19 07:38:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "ashish.is--- via Guix-patches\" via" X-Patchwork-Id: 68131 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 5380427BBEA; Thu, 19 Sep 2024 08:40:59 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-6.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_VALIDITY_CERTIFIED, RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE,SPF_HELO_PASS, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 1594427BBE2 for ; Thu, 19 Sep 2024 08:40:59 +0100 (BST) 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?b?Tmd1eeG7hW4=?= 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?b?Tmd1eeG7hW4=?= Gia Phong , Andreas Enge , Ludovic =?utf-8?q?Court=C3=A8s?= X-Debbugs-Original-Xcc: Andreas Enge , Ludovic =?utf-8?q?Co?= =?utf-8?q?urt=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 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?b?Tmd1eeG7hW4=?= Gia Phong X-ACL-Warn: , =?utf-8?q?Nguy=E1=BB=85n_Gia_Phong_via_Guix-patches?= X-Patchwork-Original-From: guix-patches--- via From: "ashish.is--- via Guix-patches\" via" Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches 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