[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Developing Guile with Guix
From: |
Ludovic Courtès |
Subject: |
Re: Developing Guile with Guix |
Date: |
Thu, 20 Aug 2015 00:51:03 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) |
Andy Wingo <address@hidden> skribis:
> On Tue 11 Aug 2015 11:11, Andy Wingo <address@hidden> writes:
>
>> the salient line being:
>>
>> ld-wrapper: error: attempt to use impure library
>> "/opt/guile/lib/libguile-2.2.so"
>>
>> What do I do here? Linking against /opt/guile/lib/libguile-2.2.so is
>> *exactly* what I want to do, so not quite sure how to proceed. I *also*
>> want the resulting binary fixed up to link via -rpath into the store, so
>> I do need the ld-wrapper AFAIU, but I guess I need for it to allow
>> linking into /opt.
>
> Grovelling in source I find that "GUIX_LD_WRAPPER_ALLOW_IMPURITIES=yep
> make install" works. Cool :)
:-)
> I guess the "right" solution is an environment variable setting to allow
> linking to libraries whose file names are absolute. You might possibly
> want to exclude libraries in /usr, just to avoid a hassle, but people do
> make things in /usr/local so dunno.
>
> Maybe GUIX_LD_WRAPPER_ALLOW_IMPURITIES=/opt/guile:/opt/foo or so.
Yes, that’s a good idea. Would you like to give it a try? :-)
Ludo’.