Roland Mainz wrote:
> Hi!
> 
> ----
> 
> Does anyone know how I can get the compiler/linker to link against a
> specific version/revision of a shared library ?
> 
> For example if I have...
> -- snip --
> /usr/lib/libChickenTerror.so ---> /usr/lib/libChickenTerror.so.666
> /usr/lib/libChickenTerror.so.666
> /usr/lib/libChickenTerror.so.665
> /usr/lib/libChickenTerror.so.664
> /usr/lib/libChickenTerror.so.200
> -- snip --
> ... and wish to link against usr/lib/libChickenTerror.so.200 - how do I
> do that ?
> 
> ----
> 
> Bye,
> Roland
> 


I ran into this problem in spades when Solaris 10 came out with libm.so.2
No program that uses libm can be linked on Solaris 10 and run on Solaris 9.

It seems that you should be able to say "cc foo.c /usr/lib/libm.so.2"
or "cc foo.c /usr/lib/libChickenTerror.so.200"
I don't think that worked for me.  But I don't remember why.
 
I've cc:ed tools-linking, I'm sure they know more than I do about this.

--chris


Reply via email to