[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] Don't augment LD_LIBRARY_PATH (was Re: [PATCH] do not augmen
Mark H Weaver
Re: [PATCH] Don't augment LD_LIBRARY_PATH (was Re: [PATCH] do not augment environment)
Fri, 05 Oct 2012 22:30:01 -0400
Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)
Thanks for the review. I agree with your stylistic suggestions and will
update my patch accordingly. What I'd like to discuss here is the logic
of the library search order.
address@hidden (Ludovic Courtès) writes:
> Mark H Weaver <address@hidden> skribis:
>> Following Bruce's suggestion, it causes 'sysdep_dynl_link' to manually
>> search additional directories if 'lt_dlopenext' fails to find the
>> library in the default paths.
> Thus, that doesn’t solve the problem described at
> To solve it, we’d have to do our own lookup unconditionally.
I've read the message referenced above several times, but I've failed to
understand why we cannot use 'lt_dladdsearchdir' to augment the path, as
shown in the first code excerpt of that message:
env = getenv ("GUILE_SYSTEM_EXTENSIONS_PATH");
(although I would enhance that code to properly handle multiple path
components in GUILE_SYSTEM_EXTENSIONS_PATH).
As I understand it, the reason given for why we cannot use that approach
is that 'libtool --mode=execute -dlopen' would not work properly, but
why do we have to do it that way?
Within 'meta/uninstalled-env', why not set GUILE_SYSTEM_EXTENSIONS_PATH
to point to the libraries and extensions in the build directory? In
fact, you seem to suggest that fix near the end the Nov 2010 message
referenced above. Why was that solution not adopted?
Re: [PATCH] Don't augment LD_LIBRARY_PATH (was Re: [PATCH] do not augment environment), Sjoerd van Leent Privé, 2012/10/05