Question on how do I tell make to choose between static and shared versions of a library

Manish Jain bourne.identity at hotmail.com
Sun Dec 16 17:23:02 UTC 2012


Hello All,

This is not a question strictly on FreeBSD. But since freebsd-questions 
is a lot quicker with its dependable responses, I decided to post my 
question here.

Under /lib I have both versions - shared (libxyz.so.1) as well as static 
(libxyz.a) - of a library. How do I tell make to link to the static 
version, not the shared one ? The next obvious question is how to do the 
vice versa - tell make to link to the shared version, not the static one.

Any help will be greatly appreciated.


Thank you &
-- 
Regards,

Manish Jain
bourne.identity at hotmail.com


More information about the freebsd-questions mailing list