Re: Stripping out unused code from linked static library
Re: Stripping out unused code from linked static library
- Subject: Re: Stripping out unused code from linked static library
- From: Sean McBride <email@hidden>
- Date: Thu, 07 Apr 2011 14:38:14 -0400
- Organization: Rogue Research Inc.
On Sat, 2 Apr 2011 20:34:36 +0400, Dimitri Schoolwerth said:
>>> As a side note: If you actually do have the 10.6 SDK I recommend you
>>> use that (maybe just remove the --with-macosx-sdk option to use the
>>> latest on the system?). wx takes run-time care of not using features
>>> that are not available on earlier systems.
>>
>> Cool, thanks.
>>
>> I was opting to build with the 10.5 SDK as I want to be able to use it
>> on 10.5 and above. Or could I still use the 10.6 SDK and just set
>> --with-macosx-version-min=10.5?
>
>Yes, wx tries to take care of that for you. --with-macosx-version-min
>determines the minimal system you want to support.
Though as discussed recently on this very list, sometimes you _must_ use
the 10.5 SDK even though you should be able to use a newer SDK with an
older deployment target.
But back to the original question, the OP could investigate enabling LTO:
<http://en.wikipedia.org/wiki/Link-time_optimization>
which may allow for better dead code stripping. But you'll need a
recent compiler...
--
____________________________________________________________
Sean McBride, B. Eng email@hidden
Rogue Research www.rogue-research.com
Mac Software Developer Montréal, Québec, Canada
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden