Browse Source

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

* gnu/packages/elf.scm (elfutils)[arguments]: New field.
gn-latest-20200428
Ludovic Courtès 6 years ago
parent
commit
13cc689ae8
1 changed files with 7 additions and 0 deletions
  1. +7
    -0
      gnu/packages/elf.scm

+ 7
- 0
gnu/packages/elf.scm View File

@ -48,6 +48,13 @@
(outputs '("out" ; libelf.so, elfutils/*.h, 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)))
(inputs `(("zlib" ,zlib)))
(home-page "https://fedorahosted.org/elfutils/")


Loading…
Cancel
Save