[LLVMdev] building llvm-gcc4 with a different target name
Erick Tryzelaar
erickt at dslextreme.com
Mon Jun 11 20:11:29 PDT 2007
Erick Tryzelaar wrote:
> Hello,
>
> I've put together a macports version of llvm and llvm-gcc4, but I've run
> into a problem with how gcc on the mac works. llvm-gcc4 creates an
> executable named:
>
> /opt/local/bin/powerpc-apple-darwin8-gcc-4.0.1
>
> Which happens to be the same executable in /usr/bin. Because I have
> /opt/local before /usr/bin, gcc ends up using llvm-gcc4 to build all my
> code. Most of the time this isn't a problem, but since llvm-gcc4 doesn't
> yet support all the flags of gcc 4 (such as the -compatibility_version
> flag flac uses when compiling), it can error out. Anyone know how can I
> build llvm-gcc4 so that it has a different exe name, or suggest a better
> way to do this?
Just a bump as I haven't figured out how to get gcc's build system to
generate the darwin target compiler named something like this:
/opt/local/bin/powerpc-apple-darwin8-llvm-gcc-4.0.1
Is this possible? Thanks again,
-e
More information about the llvm-dev
mailing list