]> git.bitcoin.ninja Git - ldk-java/commitdiff
Add debug info to liblightningjni.so
authorMatt Corallo <git@bluematt.me>
Sat, 29 Aug 2020 03:50:53 +0000 (23:50 -0400)
committerMatt Corallo <git@bluematt.me>
Sat, 29 Aug 2020 03:51:13 +0000 (23:51 -0400)
genbindings.sh

index 09e03bddf436e3b53f7c72f5aa8abec9c491c63b..1bd8f4cb29e994978d869a4a616a34bc097fe55e 100755 (executable)
@@ -8,5 +8,5 @@ set -e
 ./genbindings.py "$1/lightning-c-bindings/include/lightning.h" src/main/java/org/ldk/impl/bindings.java src/main/jni/bindings.c
 javac -h src/main/jni src/main/java/org/ldk/impl/bindings.java
 rm src/main/java/org/ldk/impl/bindings*.class
-clang -pthread -ldl -fsanitize=address -Wall -o liblightningjni.so -shared -fPIC -Wno-pointer-sign -Isrc/main/jni -I"$1/lightning-c-bindings/include/" $2 src/main/jni/bindings.c "$1"/target/debug/liblightning.a
+clang -g -pthread -ldl -fsanitize=address -Wall -o liblightningjni.so -shared -fPIC -Wno-pointer-sign -Isrc/main/jni -I"$1/lightning-c-bindings/include/" $2 src/main/jni/bindings.c "$1"/target/debug/liblightning.a
 #clang -Wl,--no-undefined -shared-libasan -pthread -ldl -Wall -flto -fuse-ld=lld -O2 -o liblightningjni.so -shared -fPIC -Wno-pointer-sign -Isrc/main/jni -I"$1/lightning-c-bindings/include/" $2 src/main/jni/bindings.c "$1"/target/release/liblightning.a