From mboxrd@z Thu Jan 1 00:00:00 1970 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) Subject: Re: [PATCH] gnu: Add GCC front ends for Fortran, Go, Objective C, and Objective C++. Date: Fri, 01 Nov 2013 23:41:38 +0100 Message-ID: <87r4az68yl.fsf@gnu.org> References: <87wqlfutme.fsf@karetnikov.org> <87hacijnke.fsf@gnu.org> <87ppr4giie.fsf@karetnikov.org> <8738nzdig1.fsf@gnu.org> <87hacdmyc2.fsf_-_@karetnikov.org> <87bo2bkd7f.fsf@gnu.org> <8761sdb3mt.fsf_-_@karetnikov.org> <87a9hpaxsq.fsf@gnu.org> <87habvq1lo.fsf@karetnikov.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41181) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VcNPV-0000T5-HS for guix-devel@gnu.org; Fri, 01 Nov 2013 18:41:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VcNPP-0000Xk-S7 for guix-devel@gnu.org; Fri, 01 Nov 2013 18:41:45 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:5306) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VcNPP-0000XA-LT for guix-devel@gnu.org; Fri, 01 Nov 2013 18:41:39 -0400 In-Reply-To: <87habvq1lo.fsf@karetnikov.org> (Nikita Karetnikov's message of "Sat, 02 Nov 2013 01:00:19 +0400") 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: Nikita Karetnikov Cc: guix-devel@gnu.org Nikita Karetnikov skribis: >> =E2=80=98ld-wrapper=E2=80=99 is a wrapper around the linker that adds a = -rpath argument >> for each -l argument (see the top of ld-wrapper.scm), such that all the >> needed libraries are in the resulting binary=E2=80=99s RUNPATH. > > Could you show how it helps to avoid the need to set environment > variables? In the general case, you wouldn=E2=80=99t want to type: export LD_LIBRARY_PATH=3D/nix/store/foo:/nix/store/bar:... More importantly, you could easily get it wrong, leading to crashes or random behavior. Setting RUNPATH at build time allows us to live our computing life in peace and harmony. HTH. :-) Ludo=E2=80=99.