BoringSSL/AVX2 to work on modern CPU (#123)

This commit is contained in:
Denis Denisov 2017-02-18 18:30:47 +02:00 committed by Wonderfall
parent d3a6dd4e10
commit 16f30bd6bd
2 changed files with 3 additions and 1 deletions

View File

@ -41,6 +41,8 @@ RUN echo "@commuedge https://nl.alpinelinux.org/alpine/edge/community" >> /etc/a
&& git clone https://boringssl.googlesource.com/boringssl --depth=1 \
&& cd /tmp/ngx_brotli && git submodule update --init \
&& cd /tmp/boringssl \
&& sed -n 's/\$avx = 0/\$avx = 2/p' crypto/*/asm/*.pl
&& sed -n 's/\$addx = 0/\$addx = 1/p' crypto/*/asm/*.pl
&& mkdir build && cd build && cmake -DCMAKE_BUILD_TYPE=Release .. \
&& make -j ${NB_CORES} && cd .. \
&& mkdir -p .openssl/lib/ && cd .openssl && ln -s ../include && cd .. \

View File

@ -7,7 +7,7 @@ This is nginx statically linked against BoringSSL, with embedded Brotli support.
#### Features
- Based on Alpine Linux.
- nginx built against **BoringSSL**.
- nginx built against **BoringSSL** with AVX2 instructions.
- Built using hardening gcc flags.
- TTP/2 (+NPN) support.
- Brotli compression support (and configured).