Debian package recommends not static linking zlib for security reason. If we
use zlib as a static library, Debian package lint reports the following error:
E: libarrow10: embedded-library
usr/lib/x86_64-linux-gnu/libarrow.so.10.0.0: zlib
embedded-library error detail:
https://lintian.debian.org/tags/embedded-library.html
zlib detection by pkg-config is also added because system zlib provides zlib.pc.
Detect order:
* ZLIB_HOME environment
* Vendored zlib
* pkg-config
This is backward compatible. If we use -DARROW_WITH_VENDORED=OFF
-DARROW_ZLIB_USE_SHARED=ON, we can use zlib installed by zlib1g-dev on
Debian. We can't use zlib installed by zlib1g-dev without
-DARROW_ZLIB_USE_SHARED=ON. Because libz.a in zlib1g isn't built with
-fPIC.
[ Full content available at: https://github.com/apache/arrow/pull/2483 ]
This message was relayed via gitbox.apache.org for [email protected]