Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 16 Dec 2012 18:28:34 +0100
From:      Polytropon <freebsd@edvax.de>
To:        Manish Jain <bourne.identity@hotmail.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Question on how do I tell make to choose between static and shared versions of a library
Message-ID:  <20121216182834.607b9f56.freebsd@edvax.de>
In-Reply-To: <BLU0-SMTP1154DEA566E8A9677055BD5F6330@phx.gbl>
References:  <mailman.67.1355659202.33098.freebsd-questions@freebsd.org> <BLU0-SMTP1154DEA566E8A9677055BD5F6330@phx.gbl>

next in thread | previous in thread | raw e-mail | index | archive | help
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@freebsd.org"

This can be done by addressing the linker through $LDFLAGS.
I think "man ld" will be helpful.




-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20121216182834.607b9f56.freebsd>