Matthew Lye wrote:
> > Does it still pick -O instead of -O2 if you specify no such flag
> > yourself?
> > If yes, what's the output of
> > gcc --version
>
> Yes, it does (as a G4 user, I specify -fast instead, which is a
> shortcut for a package of optimizations).
> gcc and cc are synonymous on my machine. The output is:
> > >gcc --version
> > powerpc-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc.
> > build 5367)
That's odd. Could you show me the output of the following? I suspect
that your GCC might not like the combination of -E with some other
compiler flags. Otherwise I don't see why it does not detect GCC 4.x.
cat >try.c <<EOF && gcc -E try.c | grep '^gcc_'
int main(void) {
#ifdef __GNUC__
gcc_version_major __GNUC__
#ifdef __GNUC_MINOR__
gcc_version_minor __GNUC__
#endif
#ifdef __GNUC_PATCHLEVEL__
gcc_version_patchlevel __GNUC_PATCHLEVEL__
#endif
#endif
}
EOF
> > ./build.sh --cflags="-mcpu=7450 -fast -mpim-altivec -maltivec -
> > mabi=altivec -ggdb3 -Wno-shadow" --ldflags="-framework Accelerate"
> > --make=/usr/bin/make --disable-nls --disable-socker
Do you really have to pass --make=/usr/bin/make?
--
Christian
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
gtk-gnutella-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-devel