Re: Customers Machines missing /usr/lib/libltdl.3.dylib
Re: Customers Machines missing /usr/lib/libltdl.3.dylib
- Subject: Re: Customers Machines missing /usr/lib/libltdl.3.dylib
- From: Nick Zitzmann <email@hidden>
- Date: Wed, 18 Feb 2009 18:49:51 -0700
On Feb 18, 2009, at 5:16 PM, Matteo Centro wrote:
Can I fix something in XCode or the only option is to recompile
libp11?
You've run into ld's static linking problem, which apparently happens
quite often to people here. Here's the problem: The linker _always_
prefers dynamic libraries over static ones, so if you've included a
static library in your project, and it has the same name (before the
extension) as a dynamic one, then the linker will always use the
dynamic one, which is probably not what you wanted.
There's no way to change this behavior, but there is a workaround - in
the "other linker flags" build setting, include a direct path to the
static library, and remove the static library from your target's
library link list.
Nick Zitzmann
<http://seiryu.home.comcast.net/>
_______________________________________________
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