guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] gnu: rustc: Add LIBRARY_PATH search path.


From: Ludovic Courtès
Subject: Re: [PATCH] gnu: rustc: Add LIBRARY_PATH search path.
Date: Sun, 29 Jan 2017 00:34:52 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux)

Hi Ben,

Ben Woodcroft <address@hidden> skribis:

> On 28/01/17 09:22, Ludovic Courtès wrote:
>> Marius Bakke <address@hidden> skribis:
>>
>>> Hi Ben,
>>>
>>> Ben Woodcroft <address@hidden> 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’s 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’s 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’.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]