Anyone know why zlib is not included in the Alpine nginx packages?
#1
Mon, 2017-05-01 04:05
WebDev
-
- Offline
- 2 months 3 weeks ago
- 2016-04-30
Hi all,
Normally nginx's configure script includes zlib like so:
--with-zlib=../zlib-1.2.11
Basically, it's just pointing nginx to wherever zlib is installed. None of the Alpine nginx packages include this, which is confusing. Anyone know why?
For example, here's the nginx build script from from the 3.5 branch: https://git.alpinelinux.org/cgit/aports/tree/main/nginx/APKBUILD?h=3.5-stable
AFAIK, Nginx compiles with Zlib by default;
--with-zlib
flag is used only if Zlib is not in the library path (like/lib
and/usr/lib
), that is, a custom Zlib. Note that Nginx package haszlib-dev
as compile-time depend. It doesn't need Zlib library as runtime depends since it is already available in fresh Alpine.