• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
weak_library, tidy, i386
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Converting a set of static libraries to dynamic
  • Next by Date: Re: Built-in gcc defines
  • Previous by thread: .cvsignore files.
  • Next by thread: isnan - isnand function definition changes
  • Index(es):
    • Date
    • Thread