[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
01/01: gnu: libcap: Add $libdir to the RUNPATH of executables.
From: |
??? |
Subject: |
01/01: gnu: libcap: Add $libdir to the RUNPATH of executables. |
Date: |
Sat, 11 Apr 2015 06:02:30 +0000 |
iyzsong pushed a commit to branch core-updates
in repository guix.
commit 6d889daf2a8162a248da0b654d69d3c7346a4ca0
Author: 宋文武 <address@hidden>
Date: Sat Apr 11 13:59:54 2015 +0800
gnu: libcap: Add $libdir to the RUNPATH of executables.
* gnu/packages/linux.scm (libcap)[arguments]: Set LDFLAGS to
'-Wl,-rpath=...' in Make.Rules.
---
gnu/packages/linux.scm | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm
index e2b8301..18f220e 100644
--- a/gnu/packages/linux.scm
+++ b/gnu/packages/linux.scm
@@ -982,7 +982,15 @@ advanced aspects of IP configuration (iptunnel, ipmaddr).")
(base32
"07vjhkznm82p8dm4w6j8mmg7h5c70lp5s9bwwfdmgwpbixfydjp1"))))
(build-system gnu-build-system)
- (arguments '(#:phases (alist-delete 'configure %standard-phases)
+ (arguments '(#:phases
+ (modify-phases %standard-phases
+ (replace 'configure
+ ;; Add $libdir to the RUNPATH of executables.
+ (lambda _
+ (substitute* "Make.Rules"
+ (("LDFLAGS := #-g")
+ (string-append "LDFLAGS := -Wl,-rpath="
+ %output "/lib"))))))
#:tests? #f ; no 'check' target
#:make-flags (list "lib=lib"
(string-append "prefix="