On Tue, Mar 31, 2020 at 5:45 AM Michael Weiser <michael.wei...@gmx.de> wrote:
>
> On Tue, Mar 31, 2020 at 09:27:02AM +0200, Niels Möller wrote:
>
> > > In a quick test on Mojave it appears that any attempt to setenv() a
> > > variable that starts with DYLD_ is silently ignored. Can you confirm
> > > that? My testcase is:
> > >
> > > DYLD_FOO=foo DLYD_FOO=bar bash -c 'echo $DYLD_FOO $DLYD_FOO'
> > >
> > > from which I get only 'bar' and no 'foo'.
> > Odd. I hope it's still possible to set DYLD_LIBRARY_PATH to a valid
> > absolute name of a directory?
>
> No, unfortunately it's not. Any attempt to set an environment variable
> whose name starts with DYLD_ seems to be ignored. It doesn't matter if
> you're a normal, admin or the root user either. It appears to be caused
> by SIP (System Integrity Protection):

SIP came to mind for me, too. I know SIP forbids installation in
directories other then /usr/local. But I could not find reading that
said it scrubbed the environmental variables.

I think Nettle's best choice is to set the variable in its test runner
scripts, like run-tests.sh. We know things work when set from there.

Jeff
_______________________________________________
nettle-bugs mailing list
nettle-bugs@lists.lysator.liu.se
http://lists.lysator.liu.se/mailman/listinfo/nettle-bugs

Reply via email to