guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] gnu: tbb: Add rpath to LDFLAGS.


From: Ricardo Wurmus
Subject: [PATCH] gnu: tbb: Add rpath to LDFLAGS.
Date: Mon, 27 Apr 2015 11:23:39 +0200

Hi Guix,

the attached patch is required to fix the build of tbb.  When tests are
enabled, some additional binaries are built whose rpath is not properly
set.  This patch sets the rpath in LDFLAGS, thereby solving this
problem.

~~ Ricardo

>From de82a09eaf5037287cf1740aab7d1ef8f748cda8 Mon Sep 17 00:00:00 2001
From: Ricardo Wurmus <address@hidden>
Date: Mon, 27 Apr 2015 11:21:08 +0200
Subject: [PATCH] gnu: tbb: Set rpath in LDFLAGS.

* gnu/packages/tbb.scm (tbb)[arguments]: Set rpath to "/lib" output directory
  in LDFLAGS.
---
 gnu/packages/tbb.scm | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/gnu/packages/tbb.scm b/gnu/packages/tbb.scm
index 3c41141..5bfbeea 100644
--- a/gnu/packages/tbb.scm
+++ b/gnu/packages/tbb.scm
@@ -46,6 +46,8 @@
     (build-system gnu-build-system)
     (arguments
      `(#:test-target "test"
+       #:make-flags (list (string-append "LDFLAGS = -Wl,-rpath="
+                                         (assoc-ref %outputs "out") "/lib"))
        #:phases (alist-replace
                  'configure
                  (lambda* (#:key outputs #:allow-other-keys)
-- 
2.1.0


reply via email to

[Prev in Thread] Current Thread [Next in Thread]