tech-pkg archive

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

Re: Deciding on wich variant(s) of OpenBLAS library to install



On 02/27, Dr. Thomas Orgis wrote:
> Am Tue, 27 Feb 2018 10:19:49 -0600
> schrieb "J. Lewis Muir" <jlmuir%imca-cat.org@localhost>:
> 
> > DYLD_LIBRARY_PATH environment variable (among others) is purged when
> > launching so-called protected processes (e.g., /bin/sh)
> 
> Wow. /bin/sh is protected? Every (wrapper) script you start gets the
> variable cleared?

Yes.  Basically all files under /bin, /sbin, /usr, and /System.  There
are some exceptions, though (e.g., /usr/local).

SIP can be disabled for the whole system, but that's not the norm.

I suppose you could make the package use a pkgsrc shell for all of its
scripts, though.  I think that would work.  Anyway, just wanted to give
a quick note on the difficulty on macOS with that particular idea.

> Does the same apply to LD_PRELOAD?

Yes.  The macOS equivalent of LD_PRELOAD is DYLD_INSERT_LIBRARIES, and
that is another one of the environment variables that is purged in the
same way as DYLD_LIBRARY_PATH.

Regards,

Lewis


Home | Main Index | Thread Index | Old Index