]> git.bitcoin.ninja Git - ldk-java/commitdiff
[Java] Link libmath for `log10` (REVERT FOR 0.0.106)
authorMatt Corallo <git@bluematt.me>
Wed, 23 Mar 2022 22:22:33 +0000 (22:22 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 23 Mar 2022 22:22:33 +0000 (22:22 +0000)
genbindings.sh

index 0c2a8982a1fe43a5205388d1f23e6b41fea79bb5..e2a6ca7c75ec107ae403709410504ced37738932 100755 (executable)
@@ -158,7 +158,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
+               $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
                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