summaryrefslogtreecommitdiff
path: root/gnu/packages/elf.scm
diff options
context:
space:
mode:
authorJohn Kehayias <john.kehayias@protonmail.com>2025-07-23 12:41:54 -0400
committerDanny Milosavljevic <dannym@friendly-machines.com>2025-08-03 16:20:34 +0200
commit897590f99d828274b3d6a84d54179aaa000ba2c3 (patch)
tree025b2e1bfcf682aff7a51e33caf8c054e8665ca2 /gnu/packages/elf.scm
parente3fbaeee1386fd447f40ffdf53d964d1f8541d49 (diff)
gnu: Add libelf-shared.
* gnu/packages/elf.scm (libelf-shared): New variable. Change-Id: Ie77583d46e674ffb97b0f2f0bd54579a2d7b49fe Signed-off-by: Danny Milosavljevic <dannym@friendly-machines.com>
Diffstat (limited to 'gnu/packages/elf.scm')
-rw-r--r--gnu/packages/elf.scm13
1 files changed, 13 insertions, 0 deletions
diff --git a/gnu/packages/elf.scm b/gnu/packages/elf.scm
index 9ee51a09182..096c8b22a42 100644
--- a/gnu/packages/elf.scm
+++ b/gnu/packages/elf.scm
@@ -13,6 +13,7 @@
13;;; Copyright © 2022 Daniel Maksymow <daniel.maksymow@tuta.io> 13;;; Copyright © 2022 Daniel Maksymow <daniel.maksymow@tuta.io>
14;;; Copyright © 2023, 2024 Janneke Nieuwenhuizen <janneke@gnu.org> 14;;; Copyright © 2023, 2024 Janneke Nieuwenhuizen <janneke@gnu.org>
15;;; Copyright © 2024 Zheng Junjie <873216071@qq.com> 15;;; Copyright © 2024 Zheng Junjie <873216071@qq.com>
16;;; Copyright © 2025 John Kehayias <john.kehayias@protonmail.com>
16;;; 17;;;
17;;; This file is part of GNU Guix. 18;;; This file is part of GNU Guix.
18;;; 19;;;
@@ -304,6 +305,18 @@ static analysis of the ELF binaries at hand.")
304 (description "Libelf is a C library to access ELF object files.") 305 (description "Libelf is a C library to access ELF object files.")
305 (license lgpl2.0+))) 306 (license lgpl2.0+)))
306 307
308
309;; This is a shared library version of libelf, currently only needed for ROCm
310;; packages in (gnu packages rocm).
311(define-public libelf-shared
312 (package
313 (inherit libelf)
314 (arguments
315 (substitute-keyword-arguments (package-arguments libelf)
316 ((#:make-flags flags #~'())
317 #~(append #$flags '("CFLAGS=-fPIC")))))
318 (properties `((hidden? . #t) ,@(package-properties libelf)))))
319
307(define-public patchelf 320(define-public patchelf
308 (package 321 (package
309 (name "patchelf") 322 (name "patchelf")