CPATH versus -I

Ryan Schmidt ryandesign at macports.org
Thu Jun 17 20:25:17 PDT 2010


On Jun 17, 2010, at 21:46, Michael Dickens wrote:

> I've been working on ticket #25320 for qt4-mac, which I think is
> actually an issue with 'port' itself and I've submitted ticket #25321 to
> that effect.  One of the issues I've come across is: When should I be
> using CPATH=<PATH:LIST> versus "-I<PATH_1> -I<PATH_2> -I..."?  Is there
> any difference between them, maybe search order?  When is one preferable
> to the other?  Is their interpretation compiler dependent?  Thanks in
> advance! - MLD

Not sure. Not sure either why CPATH was added to MacPorts in 1.9, since we obviously made do pretty well with just -I in MacPorts 1.8.x and earlier. Though there must have been a port or two that benefited from CPATH, hence its inclusion.




More information about the macports-dev mailing list