guix-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug#73190] [PATCH 2/3] gnu: make-libiberty: Build with -fPIC.


From: Nguyễn Gia Phong
Subject: [bug#73190] [PATCH 2/3] gnu: make-libiberty: Build with -fPIC.
Date: Thu, 12 Sep 2024 11:28:33 +0900

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(+)

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
-- 
2.46.0






reply via email to

[Prev in Thread] Current Thread [Next in Thread]