[54368] trunk/base/src/port1.0

Ryan Schmidt ryandesign at macports.org
Sat Jul 25 17:38:39 PDT 2009


On Jul 25, 2009, at 12:03, mcalhoun at macports.org wrote:

> Revision: 54368
>           http://trac.macports.org/changeset/54368
> Author:   mcalhoun at macports.org
> Date:     2009-07-25 10:03:12 -0700 (Sat, 25 Jul 2009)
> Log Message:
> -----------
> Some ports assume that any necessary header and library files are  
> found by default by the compiler (e.g. in /usr/include or /usr/ 
> local/include).
> Changing -I${prefix}/include to -isystem{prefix}/include usually  
> fixes the problem (See r49050, r42207, r49018, r39803, and r47699).
> Setting environmental variables CPATH and LIBRARY_PATH should make  
> setting -isystem unnecessary.
> Deleting -I${prefix}/include is only required.

Wait, what? In this commit I see you adding CPATH and LIBRARY_PATH  
but I don't see you deleting the -I and -L stuff. I thought it was an  
either/or thing -- either you use -I and -L or you use CPATH and  
LIBRARY_PATH. Is that not right? How does it all interact if you use  
all of them at once like this? How did you find that this is better  
than the other proposal of changing -I to -isystem?

http://lists.macosforge.org/pipermail/macports-dev/2009-April/ 
008148.html




More information about the macports-dev mailing list