On Thu, 2006-11-16 at 19:57 +0100, Fabian Groffen wrote:
<snip>
> On OSX I we also compile the compilers with ${EPREFIX} iso
> ${EPREFIX}/usr.  The result is as follows:
> 
> gcc version 4.0.1 (Apple Computer, Inc. build 5363)
>  /Library/Gentoo/usr/libexec/gcc/powerpc-apple-darwin8/4.0.1/cc1 -quiet -v 
> -D__DYNAMIC__ test.c -fPIC -quiet -dumpbase test.c -auxbase test -version -o 
> /var/tmp//ccr9W1q0.s

Maybe apple-gcc is different than fsf-gcc, but for me it looks like:
*) gcc does not detect being moved, because it does not pass any
"-iprefix" to cc1.
*) there's no "-I" on original gcc-commandline.

How exactly is that gcc configured (should be part of "gcc -v" output),
and what commandline params did you use here ?

> ignoring nonexistent directory "/Library/Gentoo/include"
> ignoring nonexistent directory 
> "/Library/Gentoo/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/../../../../powerpc-apple-darwin8/include"
> ignoring nonexistent directory "/Library/Gentoo/Frameworks"
> #include "..." search starts here:
> #include <...> search starts here:
>  /Library/Gentoo/usr/include
>  /Library/Gentoo/usr/lib/gcc/powerpc-apple-darwin8/4.0.1/include
>  /usr/include
>  /System/Library/Frameworks
>  /Library/Frameworks
> End of search list.

Resulting path list good, but the nonexistent "/Library/Gentoo/include"
seems to come from "--with-local-prefix=/Library/Gentoo" ?

> 
> It looks like gcc is smart enough to try "/usr" instead or something.  I
> saw on other examples of the net people including the "include"
> directory as well, which works for them, so I can imagine some fuzzy
> stuff is going on there.

Stuff becomes fuzzy when gcc erroneously detects being moved :-(
And it's my daily job to shed light on fuzzy things :-)

> 
> Conclusion: it's more correct, but doesn't change the behaviour of our
> compilers for now.  It seems we can drop the CPPFLAGS from profile.bashrc

Exactly, dropping CPPFLAGS from profile.bashrc is what I intended,
thanks!

/haubi/
PS: I've not finished playing with LDFLAGS/LD_RUN_PATH/LD_LIBRARY_PATH
in profile.bashrc, but I'm unsure yet how to do it right.
Can you 'emerge ncurses' with "-Wl,-R" in LDFLAGS ?
-- 
Michael Haubenwallner                    SALOMON Automation GmbH
Forschung & Entwicklung                  A-8114 Friesach bei Graz
mailto:[EMAIL PROTECTED]  http://www.salomon.at
No HTML/MIME please, see http://expita.com/nomime.html

-- 
[EMAIL PROTECTED] mailing list

Reply via email to