2
0
mirror of https://github.com/spritsail/plex-media-server.git synced 2024-12-20 11:34:36 +00:00

Disable executable stack in shared libs.

Should hopefully fix #11
This commit is contained in:
Joe Groocock 2019-04-27 11:12:12 +01:00
parent 5f2782c0eb
commit 9faee8ead4
Signed by: frebib
GPG Key ID: E0B16BEACFBB6A86

View File

@ -147,6 +147,10 @@ RUN curl -fsSL http://ftp.de.debian.org/debian/pool/main/g/gcc-${LIBGCC1_VER:0:1
# Strip all unneeded symbols for optimum size
RUN find -exec sh -c 'file "{}" | grep -q ELF && strip --strip-debug "{}"' \; \
# Disable executable stack in all libraries. This should already be the case
# but it seems libgnsdk is not playing along
&& apt-get -y install execstack \
&& execstack -c usr/lib/*.so* \
\
&& mkdir -p /output/usr/lib /output/usr/bin \
&& mv lib/x86_64-linux-gnu/*.so* \