Skip to content
Snippets Groups Projects
Commit 2d081611 authored by Wouter Deconinck's avatar Wouter Deconinck
Browse files

fix: exclude static archives from strip

parent c05f2eb4
No related branches found
No related tags found
1 merge request!326fix: exclude static archives from strip
...@@ -176,12 +176,15 @@ RUN cd /opt/spack-environment && spack env activate . && spack gc -y ...@@ -176,12 +176,15 @@ RUN cd /opt/spack-environment && spack env activate . && spack gc -y
# This reduces the image by factor of x2, so worth the effort # This reduces the image by factor of x2, so worth the effort
# note that we do not strip python libraries as it can cause issues in some cases # note that we do not strip python libraries as it can cause issues in some cases
RUN find -L /usr/local/* \ RUN find -L /usr/local/* \
-type d -name site-packages -prune -false -o \ -type d -name site-packages -prune -false \
-type f -not -name "zdll.lib" -not -name libtensorflow-lite.a \ -o \
-exec realpath '{}' \; \ -type d -name lib-dynload -prune -false \
-o \
-type f \
-exec realpath '{}' \; \
| xargs file -i \ | xargs file -i \
| grep 'charset=binary' \ | grep 'charset=binary' \
| grep 'x-executable\|x-archive\|x-sharedlib' \ | grep 'x-executable\|x-sharedlib' \
| awk -F: '{print $1}' | xargs strip -s | awk -F: '{print $1}' | xargs strip -s
## Bugfix to address issues loading the Qt5 libraries on Linux kernels prior to 3.15 ## Bugfix to address issues loading the Qt5 libraries on Linux kernels prior to 3.15
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment