On Sep 7, 2007, at 12:06 AM, Adriaan van Os wrote:
Gale Paeper wrote:
In looking over all the compile commands output, it doesn't look like the "CC=/Developer/Pascal/gpc412d1/bin/gcc" parameter ends up forcing that gcc to be used for all the compiling in building xgcc and xgpc. For the boatload of compile commands, there doesn't seem to be any rhyme or reason as to which C compiler is used. Sometimes, it is: gcc -c ... other times, it is: /Developer/Pascal/gpc412d1/bin/gcc -c ...
What if you do something like this
sudo mv /usr/bin/gcc /usr/bin/gcc-apple sudo ln -sf /Developer/Pascal/gpc412d1/bin/gcc /usr/bin/gcc
.. cross-compile build ..
sudo rm /usr/bin/gcc sudo mv /usr/bin/gcc-apple /usr/bin/gcc
That did it, Adriaan.
Doesn't seem quite right though to have to hack the system compiler to get the desired build compiler used.
I note that Apple's gcc installed with Xcode 2.4.1 Developer Tools is version 4.0.1 (Apple Computer, Inc. build 5367).
Gale Paeper gpaeper@empirenet.com