Skip to content

Commit 343b683

Browse files
committed
external_deps: strip static libraries (required for stripping Nettle debug symbols)
1 parent 8df7e84 commit 343b683

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

external_deps/build.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1201,7 +1201,12 @@ build_install() {
12011201
linux-*-*)
12021202
find "${PKG_PREFIX}/lib" -name '*.so' -execdir rm -f -- {} \;
12031203
find "${PKG_PREFIX}/lib" -name '*.so.*' -execdir rm -f -- {} \;
1204+
1205+
local strip="${HOST/-unknown-/-}-strip"
1206+
find "${PKG_PREFIX}/lib" -name '*.a' -execdir "${strip}" --strip-unneeded -- {} \;
12041207
;;
1208+
macos-*-*)
1209+
find "${PKG_PREFIX}/lib" -name '*.a' -execdir strip -u {} \;
12051210
esac
12061211

12071212
case "${PLATFORM}" in

0 commit comments

Comments
 (0)