unset or change CPATH/LIBRARY_PATH for build in a portfile

Joshua Root jmr at macports.org
Sun Sep 10 16:39:34 UTC 2023


On 11/9/2023 00:58, christos koninis wrote:
> Hello all,
> 
> Is there any way to unset or change the CPATH/LIBRARY_PATH environment 
> variables in a portfile during the build?
> I have tried
> 
> build.env-delete        CPATH
> build.env               CPATH=something
> 
> but they don't seem to be working.

The relevant options are compiler.cpath and compiler.library_path.

- Josh


More information about the macports-dev mailing list