Question on how do I tell make to choose between static and shared versions of a library
freebsd at edvax.de
Sun Dec 16 17:28:41 UTC 2012
On Sun, 16 Dec 2012 22:52:05 +0530, Manish Jain wrote:
> 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.
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
This can be done by addressing the linker through $LDFLAGS.
I think "man ld" will be helpful.
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
More information about the freebsd-questions