From b7192bf70b04e446999a9ad6b632296887aec7bd Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Mon, 29 Jan 2024 05:24:51 +0000 Subject: [PATCH] [Java] Fix libcode.version argument to not reference C# This caused the generated shared library to export no symbols. --- genbindings.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5