Skip to content

Commit 35a2348

Browse files
committed
Link with pack-relative-relocs to save space
1 parent 02b8ea2 commit 35a2348

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

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 \
@@ -53,7 +54,7 @@ RUN apk add --no-cache \
5354
# other options to get hardened build (same as ffmpeg hardened)
5455
ARG CFLAGS="-O3 -static-libgcc -fno-strict-overflow -fstack-protector-all -fPIC"
5556
ARG CXXFLAGS="-O3 -static-libgcc -fno-strict-overflow -fstack-protector-all -fPIC"
56-
ARG LDFLAGS="-Wl,-z,relro,-z,now"
57+
ARG LDFLAGS="-fuse-ld=lld -Wl,-z,relro,-z,now -Wl,-z,pack-relative-relocs"
5758

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

0 commit comments

Comments
 (0)