aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/elf.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2015-04-11 17:08:27 +0200
committerLudovic Courtès <ludo@gnu.org>2015-04-11 17:08:27 +0200
commit13cc689ae8f5d40d124e756cc64b32c41bc1b8d6 (patch)
tree6752538b817e0b638e0b7cdd052b39f4bf55205b /gnu/packages/elf.scm
parentcc1e1b38c9410d2e5cf8e5259dafc3215c579533 (diff)
downloadguix-13cc689ae8f5d40d124e756cc64b32c41bc1b8d6.tar
guix-13cc689ae8f5d40d124e756cc64b32c41bc1b8d6.tar.gz
gnu: elfutils: Add $libdir to the RUNPATH of binaries.
* gnu/packages/elf.scm (elfutils)[arguments]: New field.
Diffstat (limited to 'gnu/packages/elf.scm')
-rw-r--r--gnu/packages/elf.scm7
1 files changed, 7 insertions, 0 deletions
diff --git a/gnu/packages/elf.scm b/gnu/packages/elf.scm
index 7f9ac8a18f..cb456af195 100644
--- a/gnu/packages/elf.scm
+++ b/gnu/packages/elf.scm
@@ -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/")