Le 22 août 07 à 17:25, Vincent Lefevre a écrit :

On 2007-08-21 22:15:08 -0400, Jay Sachs wrote:
What about:

gcc -nostdinc \
    -isystem /usr/lib/gcc/i686-apple-darwin8/4.0.1/include \
    -isystem /usr/include \
    -isystem /System/Library/Frameworks \
    -isystem /Library/Frameworks

? It'd be nice not to hardcode this -- it could be determined dynamically by examining the output of `cpp -v` and filtering out /usr/local/ include.

Perhaps. But this is really a hack.


Why do you call it a hack? It just does what we want to.

It seems possible from the man page to do the same for libraries:

gcc -Z -L /standard/path1 -L /standard/path2 ....

The -Z option is not listed in my gcc-4.0.1 man page (from Xcode).

Unfortunately there doesn't seem to be an easy way to get consistent
include and library search paths with gcc.


That's an ld option:

-Z Do not search the standard directories when searching for
              libraries.

--
Vincent Lefèvre <[EMAIL PROTECTED]> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/ blog/> Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS- Lyon)

--
Anthony Ramine, the infamous MacPorts Trac slave.
[EMAIL PROTECTED]


_______________________________________________
macports-users mailing list
macports-users@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-users

Reply via email to