how to prepend or append to DYLD_LIBRARY_PATH in Portfile?

Joshua Root jmr at
Sat Oct 24 15:52:07 UTC 2020

On 2020-10-25 02:18 , Ken Cunningham wrote:
> It's easy to prepend or append to PATH in a Portfile, but I'm having difficulty seeing how to modify, rather than overwrite, DYLD_LIBRARY_PATH.
> Usually you just want to set it, but now that it might or might not be set in legacysupport 1.1, I was hoping to just modify rather than overwrite it.
> I tried a number of different things, but couldn't spot the magic 
> i missing something simple?

What did you try? The configure.env, build.env etc. options can be read
like any other option. You can use lsearch on it to look for entries
starting with the variable name you're after.

- Josh

More information about the macports-dev mailing list