Trouble compiling on OS X 10.6 for 10.5 lazarus / 33-macOS - Mac OS X ---------------------------------------------------------------------- VTwin · 2012-01-21 13:44 I am developing a cross platform application on OS X 10.6 using Lazarus 0.9.31. After a colleague reported it was not running on Intel 10.5, I found the info on linking for 10.5 and added the following Build Macro: Code: [Select]if TargetOS = 'darwin' then begin   UsageCustomOptions += ' -k-macosx_version_min -k10.5';   UsageCustomOptions += ' -XR/Developer/SDKs/MacOSX10.5.sdk/'; end;  That didn't solve the problem though, it still would not run. I did check, and the SDK path is correct. I found an Intel box running 10.5, and compiled it there, but that is not a good solution. Any suggestions as to what I am doing wrong? Cheers, Frederick ---------------------------------------------------------------------- Jonas Maebe · 2012-01-21 13:48 Those options are correct. If it's not working, it means that the options are not passed to the compiler while linking your program or one of the libraries it uses. ---------------------------------------------------------------------- VTwin · 2012-01-21 13:56 Thanks jmaebe, Is there a way I can see what compiler options being passed by Lazarus? ---------------------------------------------------------------------- Jonas Maebe · 2012-01-21 14:04 Project -> Project Options -> click on the "Show Options" or "Test" buttons at the bottom. FWIW, I can't get any kind of build macro to add anything to UsageCustomOptions (conditional or not). ---------------------------------------------------------------------- VTwin · 2012-01-21 14:16 As you say, the option switches do not appear to be added to the command line. Are the build macros broken? Do you have a workaround? ---------------------------------------------------------------------- Jonas Maebe · 2012-01-21 14:19 I can't help you. I'm not a Lazarus developer, and personally I use Lazarus almost exclusively as an editor. ---------------------------------------------------------------------- VTwin · 2012-01-21 14:23 Thanks Jonas, it is helpful to know it is not just me. I added switches to 'Other', and they do show up now. That probably will fix the issue, but don't have 10.5 handy to test at the moment. I appreciate the input. ---------------------------------------------------------------------- VTwin · 2012-01-28 19:37 Confirming, it did work. Thanks!