From 07bec4f3994c4dd12e974096f8eff837582cc976 Mon Sep 17 00:00:00 2001 From: oxynux Date: Mon, 17 Oct 2016 19:53:15 +0200 Subject: [PATCH] Fix ngx_brotli compilation error (#57) * Fix ngx_brotli compilation error Due to the new Brotli API some ngx_brotli functions are deprecated : https://github.com/google/ngx_brotli/issues/39#issuecomment-254093378 * Update Dockerfile --- boring-nginx/Dockerfile | 2 +- nginx/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/boring-nginx/Dockerfile b/boring-nginx/Dockerfile index 1e61043..018edc2 100644 --- a/boring-nginx/Dockerfile +++ b/boring-nginx/Dockerfile @@ -63,7 +63,7 @@ RUN echo "@commuedge https://nl.alpinelinux.org/alpine/edge/community" >> /etc/a && ./configure \ --prefix=/etc/nginx \ --sbin-path=/usr/sbin/nginx \ - --with-cc-opt="-O3 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -I ../boringssl/.openssl/include/" \ + --with-cc-opt="-O3 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -Wno-deprecated-declarations -I ../boringssl/.openssl/include/" \ --with-ld-opt="-Wl,-Bsymbolic-functions -Wl,-z,relro -L ../boringssl/.openssl/lib" \ --with-http_ssl_module \ --with-http_v2_module \ diff --git a/nginx/Dockerfile b/nginx/Dockerfile index 6acb2f4..7c185f1 100644 --- a/nginx/Dockerfile +++ b/nginx/Dockerfile @@ -71,7 +71,7 @@ RUN echo "@commuedge https://nl.alpinelinux.org/alpine/edge/community" >> /etc/a && ./configure \ --prefix=/etc/nginx \ --sbin-path=/usr/sbin/nginx \ - --with-cc-opt='-O3 -fPIE -fstack-protector-strong -Wformat -Werror=format-security' \ + --with-cc-opt='-O3 -fPIE -fstack-protector-strong -Wformat -Werror=format-security -Wno-deprecated-declarations' \ --with-ld-opt='-Wl,-Bsymbolic-functions -Wl,-z,relro' \ --with-openssl=/tmp/libressl-${LIBRESSL_VERSION} \ --with-http_ssl_module \