From: Matt Corallo Date: Mon, 29 Jan 2024 05:24:51 +0000 (+0000) Subject: [Java] Fix libcode.version argument to not reference C# X-Git-Tag: v0.0.121.0~16 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=b7192bf70b04e446999a9ad6b632296887aec7bd;p=ldk-java [Java] Fix libcode.version argument to not reference C# This caused the generated shared library to export no symbols. --- diff --git a/genbindings.sh b/genbindings.sh index 975831f7..4a37eb30 100755 --- a/genbindings.sh +++ b/genbindings.sh @@ -335,7 +335,7 @@ else [ "$IS_WIN" = "true" ] && LINK="$LINK -L/usr/lib/gcc/x86_64-w64-mingw32/12-win32/ -lbcrypt" LDK_LIB="$1"/lightning-c-bindings/target/$LDK_TARGET/release/libldk.a if [ "$IS_MAC" = "false" -a "$IS_WIN" = "false" -a "$4" = "false" ]; then - LINK="$LINK -Wl,--version-script=c_sharp/libcode.version" + LINK="$LINK -Wl,--version-script=libcode.version" fi $COMPILE -o bindings.o -c -O3 -I"$1"/lightning-c-bindings/include/ $2 src/main/jni/bindings.c