Skip to content

Commit 17b7cf6

Browse files
Strip debug info from shared libraries
Added a step to strip symbol tables and debug info from shared libraries to reduce binary size before zipping.
1 parent 1eb5a44 commit 17b7cf6

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

building/lambda/build-lambda-layer.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ for libfile in libxslt.so.1 libexslt.so.0 libatomic.so.1; do
126126
echo "WARNING: ${libfile} not found on this image"
127127
fi
128128
done
129+
130+
# Strip symbol tables and debug info to reduce binary size
129131
find lib -name '*.so*' -type f -exec strip "{}" \;
130132

131133
zip -r9 "${FILENAME}" ./python ./lib

0 commit comments

Comments
 (0)