]> git.bitcoin.ninja Git - ldk-java/commitdiff
[Java] Strip Java binaries when compiling, not just wasm
authorMatt Corallo <git@bluematt.me>
Tue, 12 Jul 2022 18:49:17 +0000 (18:49 +0000)
committerMatt Corallo <git@bluematt.me>
Fri, 22 Jul 2022 21:51:50 +0000 (21:51 +0000)
genbindings.sh

index 4102884dc92350ac4cb91565abfefa8d87979b2e..504fbc70e1937ae1699b12c46d1ebad9a1fb7ab0 100755 (executable)
@@ -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