Search code examples
macosgccosx-lionllvm

Using gcc not llvm-gcc with Mac OS X Lion


gcc is symbolically linked to llvm-gcc on Mac OS X Lion.

prosseek ~> ls -alF /usr/bin/gcc
lrwxr-xr-x  1 root  wheel  12 Nov 12 14:39 /usr/bin/gcc@ -> llvm-gcc-4.2

How can I setup to use gcc-4.2 when gcc is called?


Solution

  • There seems to be a way to use gcc with Xcode 4.2 - http://caiustheory.com/install-gcc-421-apple-build-56663-with-xcode-42