From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ben Woodcroft Subject: Re: [PATCH] gnu: rustc: Add LIBRARY_PATH search path. Date: Sat, 28 Jan 2017 09:26:44 +1000 Message-ID: <37744b8c-255c-28d0-04c1-9385f384d473@uq.edu.au> 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> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53161) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cXFv7-0007h5-Ao for guix-devel@gnu.org; Fri, 27 Jan 2017 18:27:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cXFv4-0000dI-7I for guix-devel@gnu.org; Fri, 27 Jan 2017 18:27:05 -0500 Received: from mailhub1.soe.uq.edu.au ([130.102.132.208]:34678 helo=newmailhub.uq.edu.au) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cXFv3-0000cK-Lh for guix-devel@gnu.org; Fri, 27 Jan 2017 18:27:02 -0500 In-Reply-To: <87inp01cfi.fsf@kirby.i-did-not-set--mail-host-address--so-tickle-me> 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: Marius Bakke , Ben Woodcroft , guix-devel@gnu.org Hi Marius, On 28/01/17 06:21, Marius Bakke wrote: > Hi Ben, > > Ben Woodcroft writes: > >> * gnu/packages/rust.scm (rustc)[native-search-pat hs]: 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? > > Is the problem this addresses not already fixed by > 5d18d776d269ab9a6c44e049936389df3454ba30? I didn't have any problem compiling and linking pure rust programs - that commit fixed that issue, but when trying to link rust programs to non-rust libraries such as zlib the linker did not look in the lib of the profile (unless gcc was also in the profile, I guess). I was specifically looking to include rust-htslib in a crate I am building, to be concrete. Thanks, ben.