guix_mirror_bot pushed a commit to branch master
in repository guix.

commit 897590f99d828274b3d6a84d54179aaa000ba2c3
Author: John Kehayias <[email protected]>
AuthorDate: Wed Jul 23 12:41:54 2025 -0400

    gnu: Add libelf-shared.
    
    * gnu/packages/elf.scm (libelf-shared): New variable.
    
    Change-Id: Ie77583d46e674ffb97b0f2f0bd54579a2d7b49fe
    Signed-off-by: Danny Milosavljevic <[email protected]>
---
 gnu/packages/elf.scm | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/gnu/packages/elf.scm b/gnu/packages/elf.scm
index 9ee51a0918..096c8b22a4 100644
--- a/gnu/packages/elf.scm
+++ b/gnu/packages/elf.scm
@@ -13,6 +13,7 @@
 ;;; Copyright © 2022 Daniel Maksymow <[email protected]>
 ;;; Copyright © 2023, 2024 Janneke Nieuwenhuizen <[email protected]>
 ;;; Copyright © 2024 Zheng Junjie <[email protected]>
+;;; Copyright © 2025 John Kehayias <[email protected]>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -304,6 +305,18 @@ static analysis of the ELF binaries at hand.")
     (description "Libelf is a C library to access ELF object files.")
     (license lgpl2.0+)))
 
+
+;; This is a shared library version of libelf, currently only needed for ROCm
+;; packages in (gnu packages rocm).
+(define-public libelf-shared
+  (package
+    (inherit libelf)
+    (arguments
+      (substitute-keyword-arguments (package-arguments libelf)
+        ((#:make-flags flags #~'())
+         #~(append #$flags '("CFLAGS=-fPIC")))))
+    (properties `((hidden? . #t) ,@(package-properties libelf)))))
+
 (define-public patchelf
   (package
     (name "patchelf")

Reply via email to