]> git.bitcoin.ninja Git - ldk-java/commitdiff
Update for upstream with new -lm requirement for debug
authorMatt Corallo <git@bluematt.me>
Mon, 1 Feb 2021 05:36:58 +0000 (00:36 -0500)
committerMatt Corallo <git@bluematt.me>
Mon, 1 Feb 2021 21:23:33 +0000 (16:23 -0500)
genbindings.sh

index 7c29c81deaf2ec3edd741d539ee2329d668a626c..f4c5a80d61f9baa55a49f345caff09b1e3f2ef6c 100755 (executable)
@@ -23,7 +23,7 @@ rm src/main/java/org/ldk/enums/*.class src/main/java/org/ldk/impl/bindings*.clas
 echo "Building Java bindings..."
 COMPILE="$COMMON_COMPILE -Isrc/main/jni -pthread -ldl -Wl,--no-undefined -o liblightningjni.so -shared -fPIC"
 if [ "$3" = "true" ]; then
-       $COMPILE -g -fsanitize=address -shared-libasan -Wl,-wrap,calloc -Wl,-wrap,realloc -Wl,-wrap,reallocarray -Wl,-wrap,malloc -Wl,-wrap,free -rdynamic -I"$1"/lightning-c-bindings/include/ $2 src/main/jni/bindings.c "$1"/lightning-c-bindings/target/debug/libldk.a
+       $COMPILE -g -fsanitize=address -shared-libasan -Wl,-wrap,calloc -Wl,-wrap,realloc -Wl,-wrap,reallocarray -Wl,-wrap,malloc -Wl,-wrap,free -rdynamic -I"$1"/lightning-c-bindings/include/ $2 src/main/jni/bindings.c "$1"/lightning-c-bindings/target/debug/libldk.a -lm
 else
        $COMPILE -Wl,--version-script=libcode.version -flto -fuse-ld=lld -O3 -I"$1"/lightning-c-bindings/include/ $2 src/main/jni/bindings.c "$1"/lightning-c-bindings/target/release/libldk.a
 fi