Skip to content

Commit

Permalink
Disable LTO overall
Browse files Browse the repository at this point in the history
  • Loading branch information
vincejv committed Jul 2, 2024
1 parent b5bab25 commit 5541d63
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -90,16 +90,16 @@ ARG NGINX_USER_UID
ARG NGINX_GROUP_GID
ARG CONFIG

ENV CFLAGS="-O3 -pipe -flto=thin -fomit-frame-pointer -march=sandybridge" \
ENV CFLAGS="-O3 -pipe -fomit-frame-pointer -march=sandybridge" \
CXXFLAGS="$CFLAGS" \
CPPFLAGS="$CFLAGS" \
LDFLAGS="-O3 -Wl,--strip-all -Wl,--as-needed" \
CC=clang-17 \
CXX=clang++-17
CC=clang-18 \
CXX=clang++-18

RUN \
apk add --no-cache --virtual .build-deps \
clang17 \
clang18 \
libc-dev \
make \
musl-dev \
Expand Down

0 comments on commit 5541d63

Please sign in to comment.