~ruther/guix-local

13cc689ae8f5d40d124e756cc64b32c41bc1b8d6 — Ludovic Courtès 11 years ago cc1e1b3
gnu: elfutils: Add $libdir to the RUNPATH of binaries.

* gnu/packages/elf.scm (elfutils)[arguments]: New field.
1 files changed, 7 insertions(+), 0 deletions(-)

M gnu/packages/elf.scm
M gnu/packages/elf.scm => gnu/packages/elf.scm +7 -0
@@ 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/")