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 16:04:56 +0100
> My wxWidgets apps are around 20-25 MB using wx 2.9 (x86_64+i386+PPC,
> using Cocoa) and 10-15 MB with wx 2.8 (i386+PPC, using Carbon).
> If you're on wxWidgets 2.9+ asserts by default are always enabled. In
> your wx/setup.h you might then want to set wxDEBUG_LEVEL to 0 for
> Release mode. Disabling features such as XRC and AUI may also help if
> you don't use them. Furthermore I have these in my .xcconfig file for
> Release mode:
Yeah, I'm actually using the SVN trunk so it'll definitely be 2.9. I
can't find the setup.h file you're referring to, though. From a fresh
checkout I can only see include/msvc/wx/setup.h and
include/wx/msw/setup.h which are both Windows related.
This in the line I'm using to configure wxWidgets:
./configure --prefix=/usr/local
--with-macosx-sdk=/Developer/SDKs/MacOSX10.5.sdk
--with-macosx-version-min=10.5 --with-osx_cocoa --disable-shared
--enable-universal-binary
Actually, just noticed that the above has created
lib/wx/include/osx_cocoa-unicode-static-2.9/wx/setup.h. Is this what
you are referring to? Though I've just opened it up and it doesn't
seem to contain wxDEBUG_LEVEL...
_______________________________________________
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