At 2004-09-03T21:33:26+1200, Volker Kuhlmann wrote:
> Is there an option with which I can tell gcc to link with libXY.so.2
> when using -lXY? There are two libXY.so.[23] on the system, but no
> libXY.so. Without libXY.so, the linker finds neither. Can I specify
> that always libXY.so.2 gets chosen for linking, regardless of whether
> there is a libXY.so symlink and where it points to if there is?
$ objdump -p /usr/lib/libssl.so.0.9.[67] | grep SONAME
SONAME libssl.so.0.9.6
SONAME libssl.so.0.9.7
$ cc x.c /usr/lib/libssl.so.0.9.6
$ ld ./a.out | grep libssl
libssl.so.0.9.6 => /usr/lib/i686/cmov/libssl.so.0.9.6 (0x4000e000)
$ cc x.c /usr/lib/libssl.so.0.9.7
$ ld ./a.out | grep libssl
libssl.so.0.9.7 => /usr/lib/i686/cmov/libssl.so.0.9.7 (0x41e7e000)
Cheers,
-mjg
--
Matthew Gregan |/
/| [EMAIL PROTECTED]