diff --git a/Dockerfile b/Dockerfile index 3ffba76..f5b8030 100644 --- a/Dockerfile +++ b/Dockerfile @@ -107,7 +107,7 @@ ARG GEOIP2_VERSION ARG NGINX_USER_UID ARG NGINX_GROUP_GID ARG CONFIG -ARG CFLAGS_OPT="-O3 -pipe -fomit-frame-pointer -march=sandybridge" +ARG CFLAGS_OPT="-O3 -pipe -flto -fomit-frame-pointer -march=sandybridge" ENV VERSION_OPENSSL=openssl-3.4.0 \ SHA256_OPENSSL=e15dda82fe2fe8139dc2ac21a36d4ca01d5313c75f99f46c4e8a27709b7294bf \ @@ -116,8 +116,8 @@ ENV VERSION_OPENSSL=openssl-3.4.0 \ CXXFLAGS="$CFLAGS_OPT" \ CPPFLAGS="$CFLAGS_OPT" \ LDFLAGS="-O3 -Wl,--strip-all -Wl,--as-needed" \ - CC=clang-19 \ - CXX=clang++-19 + CC=clang-17 \ + CXX=clang++-17 # Development environment RUN \ @@ -151,7 +151,7 @@ RUN \ libreadline-dev && \ # download install clang and llvm wget https://apt.llvm.org/llvm.sh && \ - chmod +x llvm.sh && ./llvm.sh 19 + chmod +x llvm.sh && ./llvm.sh 17 WORKDIR /usr/src/