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 14:04:55 +0200
Compile on 10.4… I don't understand why choosing SDK = 10.4 in the
projet settings on Xcode 3 (or even on Xcode 2.5) is an hassle ?
What did you try with install_name_tool ?
Changing the libcurl path from /usr/lib/libcurl.4.dylib to /usr/lib/
libcurl.3.dylib in the final product should work too.
install_name_tool -change /usr/lib/libcurl.4.dylib /usr/lib/libcurl.
3.dylib finalProduct
And finaly, can anyone confirm that libcurl.3.dylib is the only one
available on 10.4. If this is the case, the 10.4u SDK is buggy (at
least the version I'm using) and should not include it.
In this case, I will fill a bug report and setting the SDK to 10.4u
will not solve this version problem.
Le 17 avr. 08 à 13:25, Brad Peterson a écrit :
Hi all,
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.
Thanks!
B
_______________________________________________
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