Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Ish

macrumors 68020
Original poster
Nov 30, 2004
2,284
897
UK
We have a shell script that runs gcc to build a software package that must run on all Intel Mac o/s versions. This has all been working fine until we upgraded to Snow Leopard with its new version of the XCode tools. Now, the compiled code will no longer run on Leopard.

The XCode page on the web site says that it is possible to build software that will run on older releases but doesn't say how. There must be some gcc switches or library selections to do this. I have found the -m32 and -arch i386 options and they at least get the software to run on the Snow Leopard system. What do we need to go back to older versions?

Please do not suggest changes to the build process. It has to work this way as it is a complex set of interlinked scripts that build on ten different platforms, passing data back and forth as it goes. We need the right compiler options to build backward compatible software.

Does anyone know how to do this, or could you point us in the right direction? Many thanks!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.