[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
02/02: gnu: elfutils: Add $libdir to the RUNPATH of binaries.
From: |
Ludovic Courtès |
Subject: |
02/02: gnu: elfutils: Add $libdir to the RUNPATH of binaries. |
Date: |
Sat, 11 Apr 2015 15:08:43 +0000 |
civodul pushed a commit to branch core-updates
in repository guix.
commit 13cc689ae8f5d40d124e756cc64b32c41bc1b8d6
Author: Ludovic Courtès <address@hidden>
Date: Sat Apr 11 17:08:27 2015 +0200
gnu: elfutils: Add $libdir to the RUNPATH of binaries.
* gnu/packages/elf.scm (elfutils)[arguments]: New field.
---
gnu/packages/elf.scm | 7 +++++++
1 files changed, 7 insertions(+), 0 deletions(-)
diff --git a/gnu/packages/elf.scm b/gnu/packages/elf.scm
index 7f9ac8a..cb456af 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/")