From: Matt Corallo Date: Wed, 23 Mar 2022 22:22:33 +0000 (+0000) Subject: [Java] Link libmath for `log10` (REVERT FOR 0.0.106) X-Git-Tag: v0.0.105.1~1^2 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=0c666a965ed8a156d4dc960f2f346e357283bf9d;p=ldk-java [Java] Link libmath for `log10` (REVERT FOR 0.0.106) --- diff --git a/genbindings.sh b/genbindings.sh index 0c2a8982..e2a6ca7c 100755 --- a/genbindings.sh +++ b/genbindings.sh @@ -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