[racket-dev] OT: ld static linking + linux version numbers -> ??

From: John Clements (clements at brinckerhoff.org)
Date: Wed Aug 31 20:30:23 EDT 2011

On Aug 31, 2011, at 5:06 PM, Jon Rafkind wrote:

> On 08/31/2011 05:53 PM, John Clements wrote:
>> TOTALLY OFF-TOPIC, sorry:
>> 
>> I have an autoconf script that's failing to detect a certain library, and I've tracked it down to a failure of
>> 
>> ld -lasound foo.c
>> 
>> ..which tells me that it can't find -lasound.  Digging around in /usr/lib, I see that there's a libasound.so.2, but not a libasound.so.  I just created a symbolic link from libasound.so to libasound.so.2, and that seems to work, but that *can't* be the general solution. Can it?
>> 
>> Put differently: is there a way to specify a library version using an ld "-l" flag?
> 
> AFAIK to get the .so file you are supposed to install the development versions of the library.

Ah! Okay, this makes sense. Uh, sort of.

Thanks!

John

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4624 bytes
Desc: not available
URL: <http://lists.racket-lang.org/dev/archive/attachments/20110831/2d029849/attachment.p7s>

Posted on the dev mailing list.