]> git.bitcoin.ninja Git - ldk-java/commitdiff
[Java] Fix libcode.version argument to not reference C#
authorMatt Corallo <git@bluematt.me>
Mon, 29 Jan 2024 05:24:51 +0000 (05:24 +0000)
committerMatt Corallo <git@bluematt.me>
Mon, 29 Jan 2024 16:37:41 +0000 (16:37 +0000)
This caused the generated shared library to export no symbols.

genbindings.sh

index 975831f7fe4b6bf321c6f2e351fedd8919eb6b88..4a37eb3068f9fc6b4f9299fe2a4c38017455a47e 100755 (executable)
@@ -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