From fee669e2c2e49fff7d51c16c09122e239593be20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20Gia=20Phong?= Date: Thu, 19 Sep 2024 16:38:38 +0900 Subject: [PATCH] gnu: make-libiberty: Build with -fPIC. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Ludovic Courtès --- gnu/packages/gcc.scm | 1 + 1 file changed, 1 insertion(+) diff --git a/gnu/packages/gcc.scm b/gnu/packages/gcc.scm index 164c8d782c..7fceb4be96 100644 --- a/gnu/packages/gcc.scm +++ b/gnu/packages/gcc.scm @@ -1065,6 +1065,7 @@ using compilers other than GCC." (name "libiberty") (arguments `(#:out-of-source? #t + #:make-flags '("CFLAGS=-O2 -g -fPIC") #:phases (modify-phases %standard-phases (add-before 'configure 'chdir