Skip to content

Commit 11f2f0b

Browse files
committed
Added default compilation flags.
1 parent 703374b commit 11f2f0b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ RUN \
2929
build-base \
3030
curl \
3131
&& \
32+
# Set same default compilation flags as abuild.
33+
export CFLAGS="-Os -fomit-frame-pointer" && \
34+
export CXXFLAGS="$CFLAGS" && \
35+
export CPPFLAGS="$CFLAGS" && \
36+
export LDFLAGS="-Wl,--as-needed" && \
3237
# Download.
3338
echo "Downloading watch..." && \
3439
mkdir watch && \
@@ -57,6 +62,11 @@ RUN \
5762
zlib-dev \
5863
geoip-dev \
5964
&& \
65+
# Set same default compilation flags as abuild.
66+
export CFLAGS="-Os -fomit-frame-pointer" && \
67+
export CXXFLAGS="$CFLAGS" && \
68+
export CPPFLAGS="$CFLAGS" && \
69+
export LDFLAGS="-Wl,--as-needed" && \
6070
# Download.
6171
echo "Downloading OpenResty..." && \
6272
mkdir openresty && \

0 commit comments

Comments
 (0)