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: rustc: Add LIBRARY_PATH search path. Date: Sun, 29 Jan 2017 00:34:52 +0100 Message-ID: <87poj6zrkz.fsf@gnu.org> References: <20170127120213.3746-1-donttrustben@gmail.com> <20170127120213.3746-2-donttrustben@gmail.com> <87inp01cfi.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> <87ziic2imm.fsf@gnu.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]:59936) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cXcWI-00043d-Sm for guix-devel@gnu.org; Sat, 28 Jan 2017 18:35:00 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cXcWF-0005gc-Pc for guix-devel@gnu.org; Sat, 28 Jan 2017 18:34:58 -0500 In-Reply-To: (Ben Woodcroft's message of "Sat, 28 Jan 2017 09:35:35 +1000") 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" To: Ben Woodcroft Cc: guix-devel@gnu.org Hi Ben, Ben Woodcroft skribis: > On 28/01/17 09:22, Ludovic Court=C3=A8s wrote: >> Marius Bakke skribis: >> >>> Hi Ben, >>> >>> Ben Woodcroft writes: >>> >>>> * gnu/packages/rust.scm (rustc)[native-search-paths]: New field. >>> [...] >>> >>>> + (native-search-paths >>>> + (list (search-path-specification >>>> + (variable "LIBRARY_PATH") >>>> + (files '("lib" "lib64"))))) >>> This seems odd. This search path is for glibc, no? >> It=E2=80=99s honored by GCC (not to be confused with LD_LIBRARY_PATH.) >> >> Does rustc invoke gcc, or does it just happen to use a same-named >> variable? > It uses gcc. In that case, you can copy GCC=E2=80=99s search paths wholesale: ;; rustc invokes gcc, so we need to set its search paths accordingly. (native-search-paths (package-native-search-paths gcc)) HTH! Ludo=E2=80=99.