From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ricardo Wurmus Subject: [PATCH] gnu: tbb: Add rpath to LDFLAGS. Date: Mon, 27 Apr 2015 11:23:39 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56720) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YmfGd-0005AD-EK for guix-devel@gnu.org; Mon, 27 Apr 2015 05:23:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YmfGZ-0000Ml-8V for guix-devel@gnu.org; Mon, 27 Apr 2015 05:23:55 -0400 Received: from venus.bbbm.mdc-berlin.de ([141.80.25.30]:49607) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YmfGY-0000Lr-Uy for guix-devel@gnu.org; Mon, 27 Apr 2015 05:23:51 -0400 Received: from localhost (localhost [127.0.0.1]) by venus.bbbm.mdc-berlin.de (Postfix) with ESMTP id C9DF938084B for ; Mon, 27 Apr 2015 11:23:48 +0200 (CEST) Received: from venus.bbbm.mdc-berlin.de ([127.0.0.1]) by localhost (venus.bbbm.mdc-berlin.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id eH2uhpH04l5Y for ; Mon, 27 Apr 2015 11:23:43 +0200 (CEST) Received: from HTCAONE.mdc-berlin.net (mab.citx.mdc-berlin.de [141.80.36.102]) by venus.bbbm.mdc-berlin.de (Postfix) with ESMTP for ; Mon, 27 Apr 2015 11:23:43 +0200 (CEST) List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: guix-devel --=-=-= Content-Type: text/plain 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 --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename="0001-gnu-tbb-Set-rpath-in-LDFLAGS.patch" >From de82a09eaf5037287cf1740aab7d1ef8f748cda8 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus 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 --=-=-=--