Skip to content

Commit c498aaa

Browse files
committed
Link with pack-relative-relocs to save space
1 parent 0fc133d commit c498aaa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ RUN apk add --no-cache \
1111
bash \
1212
tar \
1313
build-base \
14+
lld \
1415
autoconf automake \
1516
libtool \
1617
diffutils \
@@ -56,7 +57,7 @@ RUN apk add --no-cache \
5657
# other options to get hardened build (same as ffmpeg hardened)
5758
ARG CFLAGS="-O3 -static-libgcc -fno-strict-overflow -fstack-protector-all -fPIC"
5859
ARG CXXFLAGS="-O3 -static-libgcc -fno-strict-overflow -fstack-protector-all -fPIC"
59-
ARG LDFLAGS="-Wl,-z,relro,-z,now"
60+
ARG LDFLAGS="-fuse-ld=lld -Wl,-z,relro,-z,now -Wl,-z,pack-relative-relocs"
6061

6162
# retry dns and some http codes that might be transient errors
6263
ARG WGET_OPTS="--retry-on-host-error --retry-on-http-error=429,500,502,503"

0 commit comments

Comments
 (0)