Welcome! Log In Create A New Profile

Advanced

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

Maxim Dounin
March 29, 2022 08:08AM
Hello!

On Mon, Mar 28, 2022 at 08:25:47PM -0300, Fabiano Furtado Pessoa Coelho wrote:

> Just one more thing....
>
> I was looking in the source code and found it:
> ...
> auto/cc/gcc:131:if [ ".$ZLIB_OPT" = "." ]; then
> auto/cc/gcc:132: ZLIB_OPT="-O2 -fomit-frame-pointer $PIPE $CPU_OPT"
> auto/cc/gcc-133-else
> auto/cc/gcc:134: ZLIB_OPT="$ZLIB_OPT $PIPE"
> auto/cc/gcc-135-fi
> ...
>
> Do I need to specify "--with-zlib-opt=-fPIC -O2 -fomit-frame-pointer"
> because of these ZLIB_OPT default values?

Yes if you want to match optimizations used by nginx by default
when building the zlib library. But that's just optimizations, so
it's completely optional.

--
Maxim Dounin
http://mdounin.ru/
_______________________________________________
nginx mailing list -- nginx@nginx.org
To unsubscribe send an email to nginx-leave@nginx.org
Subject Author Posted

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

Fabiano Furtado Pessoa Coelho March 28, 2022 03:36PM

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

noloader March 28, 2022 03:48PM

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

Fabiano Furtado Pessoa Coelho March 28, 2022 04:06PM

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

Maxim Dounin March 28, 2022 06:10PM

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

Fabiano Furtado Pessoa Coelho March 28, 2022 07:30PM

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

Maxim Dounin March 29, 2022 08:08AM

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

Fabiano Furtado Pessoa Coelho March 29, 2022 03:10PM

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

Jim Popovitch via nginx March 29, 2022 03:30PM

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

Fabiano Furtado Pessoa Coelho March 30, 2022 09:28AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 305
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready