weak_library, tidy, i386
weak_library, tidy, i386
- Subject: weak_library, tidy, i386
- From: Eric Slosser <email@hidden>
- Date: Mon, 21 Aug 2006 09:52:03 -0400
Thing One:
It doesn't appear that ld uses the -isysroot <SDK> path when weak linking a dylib (via the -weak_library flag).
I think this because I tried to weak-link to /usr/lib/libtidy.dylib, and was getting the same 'missing symbol' errors as if I hadn't tried to link to libtidy at all. This was happening during the build of my release configuration, which is a universal binary (ppc/i386).
I did an "nm -arch i386 -g" on "/usr/lib/libtidy.dylib" and found there was no i386 bits in it (this is on a 10.4.7-QuadG5). I replaced that file with the one I found in the 10.4.0 SDK, which does have i386 symbols, and the link is happy.
Is this news to anyone else, or is this old hat? It's my first attempt at using the weak_library, so I'm willing to believe there's some assumption I'm making from PEF days that doesn't apply to mach-o.
Thing Two:
After I put the SDK's version into /usr/lib, and get that particular framework to link, every framework that links to it ALSO appears whines about missing the tidy symbols. Can it really be the case that, just because my framework Foo weaklinks to tidy, everyone that links to Foo.framework has to weak link to tidy also?
--
//-------------------------------------------------
email@hidden virtual-fx, inc. 617 314-9400
_______________________________________________
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