Re: Forcing Xcode to prefer a specific dylib
Re: Forcing Xcode to prefer a specific dylib
- Subject: Re: Forcing Xcode to prefer a specific dylib
- From: Jean-Daniel Dupas <email@hidden>
- Date: Thu, 17 Apr 2008 23:24:54 +0200
Le 17 avr. 08 à 20:03, Chris Espinosa a écrit :
On Apr 17, 2008, at 4:25 AM, Brad Peterson wrote:
I'm trying to build an app that uses libcurl on 10.5.
However, it must also run on 10.4. (Yes, I could build
on 10.4, but that's a considerable hassle for me
personally.)
On 10.5, Xcode seems to prefer libcurl.4.dylib, even
though other earlier versions are available. Of
course, on 10.4, only libcurl.3.dylib is available.
I've tried everything I can think of, including (but
not limited to ;) ) using install_name_tool, -weak
linking, and so on, but to no avail.
So, I'd like to know how I can force Xcode to link
against libcurl.3.dylib instead of simply choosing the
latest version available.
I tried using -lcurl.3 in the build settings, but it
seems to ignore me.
-l/usr/bin/libcurl.3.dylib
he Linker will always use a library you provide explicitly by its
full path. If you just use the library's canonical name (e.g. -
lcurl), it will apply the search heuristics to pick the one it
prefers by location, type (.dylib over .a), and version.
Chris
As most of the library are just symlink to the last version, that will
not help (at least, not for libcurl as libcurl.3.dylib is a symlink to
libcurl.4.dylib).
_______________________________________________
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