From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44124) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1euMUx-0005pf-AM for guix-patches@gnu.org; Fri, 09 Mar 2018 13:12:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1euMUt-0003DR-Gj for guix-patches@gnu.org; Fri, 09 Mar 2018 13:12:07 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:44896) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1euMUt-0003DK-Co for guix-patches@gnu.org; Fri, 09 Mar 2018 13:12:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1euMUt-0005Ik-7H for guix-patches@gnu.org; Fri, 09 Mar 2018 13:12:03 -0500 Subject: [bug#30761] [PATCH staging 4/9] build-system/meson: Add the output directory to RUNPATH. Resent-Message-ID: From: Marius Bakke Date: Fri, 9 Mar 2018 19:11:03 +0100 Message-Id: <20180309181108.22888-4-mbakke@fastmail.com> In-Reply-To: <20180309181108.22888-1-mbakke@fastmail.com> References: <20180309181108.22888-1-mbakke@fastmail.com> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 30761@debbugs.gnu.org * guix/build/meson-build-system.scm (configure): Set LDFLAGS before invoking meson. --- guix/build/meson-build-system.scm | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/guix/build/meson-build-system.scm b/guix/build/meson-build-system.scm index 2b92240c5..e8cb5440e 100644 --- a/guix/build/meson-build-system.scm +++ b/guix/build/meson-build-system.scm @@ -46,6 +46,15 @@ ,(string-append "--buildtype=" build-type) ,@configure-flags ,source-dir))) + + ;; Meson lacks good facilities for dealing with RUNPATH, so we + ;; add the output "lib" directory here to avoid doing that in + ;; many users. Related issues: + ;; * + ;; * + ;; * + (setenv "LDFLAGS" (string-append "-Wl,-rpath=" out "/lib")) + (mkdir build-dir) (chdir build-dir) (zero? (apply system* "meson" args)))) -- 2.16.2