tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: How to make packages use built in zlib?



* On 2014-01-14 at 18:17 GMT, Benny Siegert wrote:

> I noticed that the MirBSD bulk build logs contain several instances of zlib
> version errors. This is because there is a built-in libz.so.5.4 while
> pkgsrc installs a slightly newer version as libz.so.1.0.
> 
> Linking against libz from pkgsrc is dangerous because many binaries link
> against the built-in libcrypto, which pulls in the built-in libz. Thus I
> would like to always use the built-in zlib, which happens to be new enough
> for the ABI_DEPENDS in its builtin.mk.
> 
> What is the right incantation to achieve this? Can I do it in a platform
> defaults file?

_OPSYS_PREFER.zlib?=native in mk/platform/MirBSD.mk

-- 
Jonathan Perkin  -  Joyent, Inc.  -  www.joyent.com


Home | Main Index | Thread Index | Old Index