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: Darrell Blake <email@hidden>
- Date: Sat, 02 Apr 2011 14:21:27 +0100
> The linker will by default only link in object files from the static library that contain symbols referenced by the application.
> If you want the selection to happen at symbol rather than at object level granularity, enable dead code stripping in Xcode.
> This corresponds to the gcc option -Wl,-dead_strip (= linker option -dead_strip). It's probably already enabled by default in
> Xcode though.
Cool, thanks. Just enabled the -dead_strip option and it's now down to
30mb. I'm probably not going to get it much smaller than that, am I?
_______________________________________________
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