Hi Ben,

Ben Woodcroft <[email protected]> skribis:

> On 28/01/17 09:22, Ludovic Courtès wrote:
>> Marius Bakke <[email protected]> skribis:
>>
>>> Hi Ben,
>>>
>>> Ben Woodcroft <[email protected]> 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