diff options
author | Ludovic Courtès <ludo@gnu.org> | 2014-05-20 14:29:46 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2014-05-20 14:29:46 +0200 |
commit | 6d69a7ed1040cb1f8d7d6910358dc20564314916 (patch) | |
tree | 870e9ea7c69c2452bcb6339d479c768ac11edd20 | |
parent | 722111abb7c15b77bc10a2afe0f0fd34106dc250 (diff) | |
download | guix-6d69a7ed1040cb1f8d7d6910358dc20564314916.tar.gz |
gnu: ncurses: Set a RUNPATH on the executables and libraries.
* gnu/packages/ncurses.scm (ncurses)[arguments]: Add LDFLAGS to #:configure-flags.
-rw-r--r-- | gnu/packages/ncurses.scm | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gnu/packages/ncurses.scm b/gnu/packages/ncurses.scm index b8f6bc834b..de7e6f6721 100644 --- a/gnu/packages/ncurses.scm +++ b/gnu/packages/ncurses.scm @@ -1,5 +1,5 @@ ;;; GNU Guix --- Functional package management for GNU -;;; Copyright © 2012, 2013 Ludovic Courtès <ludo@gnu.org> +;;; Copyright © 2012, 2013, 2014 Ludovic Courtès <ludo@gnu.org> ;;; Copyright © 2014 Mark H Weaver <mhw@netris.org> ;;; ;;; This file is part of GNU Guix. @@ -52,7 +52,6 @@ (("cross_compiling:=no") "cross_compiling:=yes")))) (post-install-phase - ;; FIXME: The `tic' binary lacks a RUNPATH; fix it. '(lambda* (#:key outputs #:allow-other-keys) (let ((out (assoc-ref outputs "out"))) ;; When building a wide-character (Unicode) build, create backward @@ -105,6 +104,11 @@ ,(string-append "--mandir=" (assoc-ref %outputs "out") "/share/man") + ;; Make sure programs like 'tic', 'reset', and 'clear' have a + ;; correct RUNPATH. + ,(string-append "LDFLAGS=-Wl,-rpath=" (assoc-ref %outputs "out") + "/lib") + ;; C++ bindings fail to build on ;; `i386-pc-solaris2.11' with GCC 3.4.3: ;; <http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=6395191>. |