Re: bundling a set of static libs into a framework
Re: bundling a set of static libs into a framework
- Subject: Re: bundling a set of static libs into a framework
- From: Greg Guerin <email@hidden>
- Date: Fri, 19 Dec 2008 18:47:19 -0700
Wesley Smith wrote:
I'm working on a framework that takes in about 15 static libs and a
few .o files and makes them into a framework + a few utility functions
in C++ code. For the most part, it's working quite well but for
whatever reason, a handful of symbols are not getting into the
framework from the static libs. I've observed that if I add a "hack"
function that makes explicit use of these symbols in one of the
framework's source files that they will somehow get into the
framework.
The "somehow" is inherent to a static library.
Start by reading the man page for 'ld', especially the initial
sections that describe what a static library is, and how modules in a
static lib are pulled out and linked (find the word "pull"). Then,
find the '-all_load' option.
http://developer.apple.com/documentation/Darwin/Reference/ManPages/
man1/ld.1.html
-- GG
_______________________________________________
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