Message ID | c11e82527f0d4e9aaaffa538a8c5b127f9a782d4.1726106463.git.mcsinyx@disroot.org |
---|---|
State | New |
Headers |
Return-Path: <guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org> X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 604C527BBEA; Thu, 12 Sep 2024 03:30:16 +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 E9D9C27BBE2 for <patchwork@mira.cbaines.net>; Thu, 12 Sep 2024 03:30:15 +0100 (BST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <guix-patches-bounces@gnu.org>) id 1soZao-0002yy-OZ; Wed, 11 Sep 2024 22:29:58 -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 <Debian-debbugs@debbugs.gnu.org>) id 1soZan-0002yA-7A for guix-patches@gnu.org; Wed, 11 Sep 2024 22:29:57 -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 <Debian-debbugs@debbugs.gnu.org>) id 1soZam-0002q7-FO; Wed, 11 Sep 2024 22:29:56 -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=71ZOAIgqQDOgKzV7mG2X6GjQzGd8lyJKhkjRci5hKSQ=; b=dLZjK3KWT0VDPQzKD9HdfG04lyFyECDO1SPH+qJDx3GiRfIcCkZgh3MW/lb9Zczq3xUR+77Vhln9O4VKxAlVcXa4Ylm4vJuXRVECIW9TAv8zbzv+i0eA105EZT/2IaXd3AoonbbmQ6KZfZOQBbT0kS/q0He6zJ0bFcFrUQHwoJXLoR+08iFLoVD5r6wxMQUQ7LwB6TBBMLSoxoKgMcKAT6amPn7Hw5mBWR3PtWIsanI2I5SoLy6UWpm6vHH67VI3MfvAIDil9xp7rentMFSgF4ltMX16DBJFKYd5EExOn/LPjS6X6GxNF8A2UOtvdaRXlsBVlpTgISWKL5O89mGBig==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1soZas-0000ks-Vs; Wed, 11 Sep 2024 22:30:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#73190] [PATCH 2/3] gnu: make-libiberty: Build with -fPIC. Resent-From: =?utf-8?b?Tmd1eeG7hW4=?= Gia Phong <mcsinyx@disroot.org> Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org> Resent-CC: andreas@enge.fr, ludo@gnu.org, guix-patches@gnu.org Resent-Date: Thu, 12 Sep 2024 02:30:02 +0000 Resent-Message-ID: <handler.73190.B73190.17261081482780@debbugs.gnu.org> 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 <mcsinyx@disroot.org>, Andreas Enge <andreas@enge.fr>, Ludovic =?utf-8?q?Court=C3=A8s?= <ludo@gnu.org> X-Debbugs-Original-Xcc: Andreas Enge <andreas@enge.fr>, Ludovic =?utf-8?q?Co?= =?utf-8?q?urt=C3=A8s?= <ludo@gnu.org> Received: via spool by 73190-submit@debbugs.gnu.org id=B73190.17261081482780 (code B ref 73190); Thu, 12 Sep 2024 02:30:02 +0000 Received: (at 73190) by debbugs.gnu.org; 12 Sep 2024 02:29:08 +0000 Received: from localhost ([127.0.0.1]:39828 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>) id 1soZZz-0000im-Ri for submit@debbugs.gnu.org; Wed, 11 Sep 2024 22:29:08 -0400 Received: from layka.disroot.org ([178.21.23.139]:42056) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from <mcsinyx@disroot.org>) id 1soZZy-0000ie-BH for 73190@debbugs.gnu.org; Wed, 11 Sep 2024 22:29:06 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 8CC6041CAA; Thu, 12 Sep 2024 04:28:58 +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]) (amavisd-new, port 10024) with ESMTP id mFp1E5Sjn-T2; Thu, 12 Sep 2024 04:28:57 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1726108137; bh=FoGSAaw6huZVRo75d9gmr2m+mRH8uTYVoyJFMqqGZLo=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=RZgDYd0pe0wDi/ENIuLa2UXP827PEFO7W8a2/LpFg5CYtUvK4Wh/dbYCalTwgRziw 4Q/RTG8Yd4AapSnwSV774F4qP5irB38g46Z6n3i5gQrd+kX3w5hY7jynQU79pTP4n5 EVSF6j3N8WjmI+sVi2mFA9Q0NHk1Nbpwu9/ohNrt/6Sag20xJs14/VPYoccvE12KU4 Q429qqTPqf14DbTz6X6oDuBl/Y4IIQZRt9x7Ub7+WPKiPO60qvbpW/JtPa0TlnBdn6 UfcwVTgOhDlmdoHEnOxL4k74mhHVCGo7ggG9KmMUSOJHixmiN64Tr9ENjrfjYbFVOJ qwxNJizeU8xLg== Date: Thu, 12 Sep 2024 11:28:33 +0900 Message-ID: <c11e82527f0d4e9aaaffa538a8c5b127f9a782d4.1726106463.git.mcsinyx@disroot.org> In-Reply-To: <cover.1726106463.git.mcsinyx@disroot.org> References: <cover.1726106463.git.mcsinyx@disroot.org> 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: <guix-patches.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=unsubscribe> List-Archive: <https://lists.gnu.org/archive/html/guix-patches> List-Post: <mailto:guix-patches@gnu.org> List-Help: <mailto:guix-patches-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-patches>, <mailto:guix-patches-request@gnu.org?subject=subscribe> Reply-to: =?utf-8?b?Tmd1eeG7hW4=?= Gia Phong <mcsinyx@disroot.org> X-ACL-Warn: , =?utf-8?q?Nguy=E1=BB=85n_Gia_Phong_via_Guix-patches?= <guix-patches@gnu.org> From: guix-patches--- via <guix-patches@gnu.org> 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 |
Series |
gnu: dyninst: Update to 13.0.0.
|
|
Commit Message
tusharhero--- via Guix-patches via
Sept. 12, 2024, 2:28 a.m. UTC
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.) * 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(+)
Comments
Hello, Nguyễn Gia Phong <mcsinyx@disroot.org> skribis: > 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.) > > * gnu/packages/gcc.scm (make-libiberty)[arguments]: > Adjust make-flags to add -fPIC to CFLAGS. > > Change-Id: I155045d05f4434cb68be933a95b7bc9fdec98818 [...] > + #:make-flags '("CFLAGS=-fPIC") I believe this overrides the default ‘CFLAGS’, and the end result is that the library would be compiled with ‘-O0 -g0’. So unless I’m mistaken, you should instead have: "CFLAGS=-O2 -g -fPIC" Apart from that, the patch series looks good to me. Could you send updated patches? Thanks in advance, Ludo’.
diff --git a/gnu/packages/gcc.scm b/gnu/packages/gcc.scm index fef05b0c32d6..9da2d629cce7 100644 --- a/gnu/packages/gcc.scm +++ b/gnu/packages/gcc.scm @@ -1064,6 +1064,7 @@ (define (make-libiberty gcc) (name "libiberty") (arguments `(#:out-of-source? #t + #:make-flags '("CFLAGS=-fPIC") #:phases (modify-phases %standard-phases (add-before 'configure 'chdir