aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Wurmus <ricardo.wurmus@mdc-berlin.de>2015-04-14 14:11:42 +0200
committerRicardo Wurmus <ricardo.wurmus@mdc-berlin.de>2015-04-16 10:23:03 +0200
commit4f2bde44330b32d5d34170a46553b9b5036cd2d3 (patch)
treed05c8da0b8d7d910d3a4c991834807bd40f53cb5
parent945e9c0cefcf8d89939e831114154147cd4eca9a (diff)
downloadpatches-4f2bde44330b32d5d34170a46553b9b5036cd2d3.tar
patches-4f2bde44330b32d5d34170a46553b9b5036cd2d3.tar.gz
gnu: tbb: Set library rpath.
* gnu/packages/tbb.scm (tbb)[arguments]: Add the rpath for lib directory of output to LDFLAGS.
-rw-r--r--gnu/packages/tbb.scm7
1 files changed, 6 insertions, 1 deletions
diff --git a/gnu/packages/tbb.scm b/gnu/packages/tbb.scm
index 42670d77c0..3c41141dc6 100644
--- a/gnu/packages/tbb.scm
+++ b/gnu/packages/tbb.scm
@@ -46,8 +46,13 @@
(build-system gnu-build-system)
(arguments
`(#:test-target "test"
- #:phases (alist-delete
+ #:phases (alist-replace
'configure
+ (lambda* (#:key outputs #:allow-other-keys)
+ (substitute* "build/linux.gcc.inc"
+ (("LIB_LINK_FLAGS =")
+ (string-append "LIB_LINK_FLAGS = -Wl,-rpath="
+ (assoc-ref outputs "out") "/lib"))))
(alist-replace
'install
(lambda* (#:key outputs #:allow-other-keys)