tags:

views:

46

answers:

1

I'm attempting to build a program (Dwarf Fortress) that uses C++0x features that aren't well supported in the latest Leopard version of XCode. As there is also a significant speed boost from using GCC 4.5, we've decided to build our own.

However, this causes the resulting executables to not work on Tiger, citing missing symbols in libc. Presumably, GCC is being built against the Leopard SDK, not the installed Tiger SDK, which is reasonable but annoying. How would I make it build against Tiger's?

+1  A: 

You need to pass -mmacosx-version-min=10.5 to ld, which will tell it to link against the appropriate symbols in libc.

Ben Stiglitz
See also http://stackoverflow.com/questions/2923502/what-does-macosx-version-min-imply.
Ben Stiglitz