Skip to content
Snippets Groups Projects
Commit 13cc689a authored by Ludovic Courtès's avatar Ludovic Courtès
Browse files

gnu: elfutils: Add $libdir to the RUNPATH of binaries.

* gnu/packages/elf.scm (elfutils)[arguments]: New field.
parent cc1e1b38
No related branches found
No related tags found
No related merge requests found
...@@ -48,6 +48,13 @@ (define-public elfutils ...@@ -48,6 +48,13 @@ (define-public elfutils
(outputs '("out" ; libelf.so, elfutils/*.h, etc. (outputs '("out" ; libelf.so, elfutils/*.h, etc.
"bin")) ; ld, nm, objdump, etc. "bin")) ; ld, nm, objdump, etc.
(arguments
;; Programs don't have libelf.so in their RUNPATH and libraries don't
;; know where to find each other.
`(#:configure-flags (list (string-append "LDFLAGS=-Wl,-rpath="
(assoc-ref %outputs "out")
"/lib"))))
(native-inputs `(("m4" ,m4))) (native-inputs `(("m4" ,m4)))
(inputs `(("zlib" ,zlib))) (inputs `(("zlib" ,zlib)))
(home-page "https://fedorahosted.org/elfutils/") (home-page "https://fedorahosted.org/elfutils/")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment