From efef5b96e398356838dc2bd01bcb6baa145a5768 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Tue, 12 Jul 2022 18:49:17 +0000 Subject: [PATCH] [Java] Strip Java binaries when compiling, not just wasm --- genbindings.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/genbindings.sh b/genbindings.sh index 4102884d..504fbc70 100755 --- a/genbindings.sh +++ b/genbindings.sh @@ -159,7 +159,7 @@ if [ "$2" != "wasm" ]; then popd LDK_LIB="tmp/libldk.bc tmp/libldk.a" fi - $COMPILE -o liblightningjni_release$LDK_TARGET_SUFFIX.so -flto -O3 -I"$1"/lightning-c-bindings/include/ $2 src/main/jni/bindings.c $LDK_LIB -lm + $COMPILE -o liblightningjni_release$LDK_TARGET_SUFFIX.so -s -flto -O3 -I"$1"/lightning-c-bindings/include/ $2 src/main/jni/bindings.c $LDK_LIB -lm if [ "$IS_MAC" = "false" -a "$4" = "false" ]; then GLIBC_SYMBS="$(objdump -T liblightningjni_release$LDK_TARGET_SUFFIX.so | grep GLIBC_ | grep -v "GLIBC_2\.2\." | grep -v "GLIBC_2\.3\(\.\| \)" | grep -v "GLIBC_2.\(14\|17\) " || echo)" if [ "$GLIBC_SYMBS" != "" ]; then -- 2.39.5