Re: Can't statically link library if a dylib exists?
Re: Can't statically link library if a dylib exists?
- Subject: Re: Can't statically link library if a dylib exists?
- From: Scott Tooker <email@hidden>
- Date: Fri, 31 Oct 2003 13:49:53 -0800
A known issue that we want to fix in a future release.
Scott
On Oct 30, 2003, at 8:24 PM, Larry Campbell wrote:
> So, a little more detail. It seems that when you add a static library
> (libfoo.a) to a target, xcode adds
>
> -lfoo
>
> to the ld command line instead of what I want, which would be
>
> <path>/libfoo.a
>
> Is there any way to get xcode to use the filename I gave it, instead
> of turning it into a -l option?
>
>
> On Oct 30, 2003, at 9:46 AM, Larry Campbell wrote:
>
>> I've written a framework which is an Objective-C wrapper around
>> netsnmp. I've built netsnmp locally as a static library,
>> /usr/local/lib/libnetsnmp.a. I've added this static library to my
>> framework's target, but when I build the framework the static library
>> is not included, and the framework instead references
>> /usr/lib/libnetsnmp.dylib. The only way I've been able to get the
>> static version linked in to my framework is to delete or rename
>> /usr/lib/libnetsnmp*.
>>
>> First, this seems like a bug. If I add /usr/local/lib/libnetsnmp.a to
>> my target, why is xcode even thinking about pulling in
>> /usr/lib/libnetsnmp.dylib?
>>
>> And, more importantly, how do I get it to stop?
>> _______________________________________________
>> xcode-users mailing list | email@hidden
>> Help/Unsubscribe/Archives:
>> http://www.lists.apple.com/mailman/listinfo/xcode-users
>> Do not post admin requests to the list. They will be ignored.
> _______________________________________________
> xcode-users mailing list | email@hidden
> Help/Unsubscribe/Archives:
> http://www.lists.apple.com/mailman/listinfo/xcode-users
> Do not post admin requests to the list. They will be ignored.
[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.