iyzsong pushed a commit to branch core-updates
in repository guix.

commit 691cb22b1b4be122fc67d51c890e9fbf1643a182
Author: 宋文武 <[email protected]>
Date:   Wed Apr 15 12:41:21 2015 +0800

    gnu: fltk: Add $libdir to the RUNPATH of binaries.
    
    * gnu/packages/fltk.scm (fltk)[arguments]: Add
      DSOFLAGS=-Wl,-rpath=$libdir to #:configure-flags.
---
 gnu/packages/fltk.scm |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/gnu/packages/fltk.scm b/gnu/packages/fltk.scm
index 5c872cb..1ac1f25 100644
--- a/gnu/packages/fltk.scm
+++ b/gnu/packages/fltk.scm
@@ -42,7 +42,9 @@
         ("mesa" ,mesa)))
     (arguments
      `(#:tests? #f                      ;TODO: compile programs in "test" dir
-       #:configure-flags '("--enable-shared")
+       #:configure-flags
+       (list "--enable-shared"
+             (string-append "DSOFLAGS=-Wl,-rpath=" %output "/lib"))
        #:phases
        (alist-cons-before
         'configure 'patch-makeinclude

Reply via email to