From: Matt Corallo Date: Tue, 12 Jul 2022 18:49:17 +0000 (+0000) Subject: [Java] Strip Java binaries when compiling, not just wasm X-Git-Tag: v0.0.110.0~1^2~5 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=efef5b96e398356838dc2bd01bcb6baa145a5768;p=ldk-java [Java] Strip Java binaries when compiling, not just wasm --- 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