NGINX "--with-zlib=..." linker error

Jim Popovitch jimpop at domainmail.org
Tue Mar 29 19:25:40 UTC 2022


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On Tue, 2022-03-29 at 16:03 -0300, Fabiano Furtado Pessoa Coelho wrote:
> Hi Maxim...
> 
> I have a ./configure error with two or more parameters on "--with-zlib-opt=...".
> 
> I've tried:
>   * --with-zlib-opt=-O2 -fPIC
>   * --with-zlib-opt="-O2 -fPIC"
>   * --with-zlib-opt='-O2 -fPIC'
>   * --with-zlib-opt=-O2-fPIC
>   * --with-zlib-opt=\-O2\ \-fPIC
> ... and none of these syntax works.
> 
> It works with only one parameter and my solution is to modify the
> auto/cc/gcc file.

You should do:
    --with-zlib-opt="-O2 -fPIC"

hth,

- -Jim P.
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEE3RmV4WutJ2KyCS2zPcxbabkKGJ8FAmJDXTQACgkQPcxbabkK
GJ9hqg//akqv7BtyLViYmteyLKfEsspYb7tUkgTW/sir6zXxzmCY2j3MgzassT0B
bX1It46D/SYJmbCjUjMtxRKnDIW0sZ+Mw6dQeAkvi3SnwquBnSSUal98RqiT6wVO
MVqupyOjE7QIQjOmQqwdHtTaj50kXMqEho05KewonK3EFLKrlc7hDGMQ1j4roFhO
ZZvGM+pEuTdsY67S9/iOFW8blGaHjtfzOgOXGAMmuRnLYemKOJS+1BQ4Xe3s6yvv
DRmQdiRZr7X2ZSqmLo/dYd3ZewDJChwigyjQblIbxcQRhZQC5Nzu+TdQe6FA5PBP
qLOwRC0M/cf3Hsvzt781u/mUTPOpREw+wo6FTxvykfUcBdZ0f6f1eiKf6+mwT0yH
3CeIscPerDhFP3JABrL7nXGnz0P5LZEEJcrBiTHLidUZBF0bRLrDgk4+cjwyxr83
AIDjDfyBEDK8xC3tmFD9QeGQbPhBGH2F/59z/9APEwtXf4JLixfRVkztkcQggutJ
rvp74NA/JY4cXPoHMKSkja0/3gYrePadF5qCnEbPv/ioDxM1MQgrq0hmGEa2iuSr
jfcx4okCnR9PXHnzX1JKa/tvUOFBYmejsLlPv07AEYuKbom3ntBJ0v6EM1DZhbpL
eymk2n85tv49InkayzD60VLjt+1KIS1V+GmmkKvd0uIKRocPf7M=
=J69Q
-----END PGP SIGNATURE-----



More information about the nginx mailing list