[Top][All Lists]

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

Re: [Chicken-hackers] [PATCH] On OS X, ensure DYLD_LIBRARY_PATH is passe

From: Jim Ursetto
Subject: Re: [Chicken-hackers] [PATCH] On OS X, ensure DYLD_LIBRARY_PATH is passed to children (#1277)
Date: Sat, 16 Apr 2016 00:36:14 -0500

Here is a patch which uses the env idea.  
It is a much less invasive change and might slot into 4.11.
Tested only on OS X 10.11.

Attachment: 0001-On-OS-X-ensure-DYLD_LIBRARY_PATH-is-passed-to-childr.patch.txt
Description: Text document


> On Apr 15, 2016, at 21:23, Jim Ursetto <address@hidden> wrote:
>> On Apr 15, 2016, at 18:46, address@hidden wrote:
>> Another dirty solution would be to add a hack to those tools that invoke 
>> uninstalled
>> programs via system(3) to invoke "env DYLD_LIBRARY_PATH=... <program>"
>> instead.
> In limited testing the env approach seems to work.  But, I can’t see how to
> do this only during the testing phase.  There’s no way for chicken-install or
> setup-api, for example, to know that it’s being invoked as an uninstalled 
> program,
> and needs to pass DYLD_LIBRARY_PATH to its children.  I suppose that, if a 
> tool
> detects that the DYLD_LIBRARY_PATH variable is set at all, and the platform is
> OS X, it could prepend the env call.  I would prefer to do only do it during
> `make check`, but it may be an okay compromise.  I’ll look into it...
> Jim

reply via email to

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