]> git.bitcoin.ninja Git - ldk-java/commitdiff
[C#] Add -lntdll to windows builds as rustc relies on it
authorMatt Corallo <git@bluematt.me>
Thu, 16 Nov 2023 04:22:00 +0000 (04:22 +0000)
committerMatt Corallo <git@bluematt.me>
Thu, 16 Nov 2023 23:43:44 +0000 (23:43 +0000)
genbindings.sh

index 81c15294c8fbda87b987cccde53461fa3c6d65a1..3fdb397b05c47fb7fb9dee78bfd8ce42b3d8818b 100755 (executable)
@@ -154,7 +154,7 @@ if [ "$2" = "c_sharp" ]; then
                [ "$IS_APPLE_CLANG" = "false" ] && COMPILE="$COMPILE -flto"
                [ "$IS_MAC" = "false" ] && LINK="$LINK -Wl,--no-undefined"
                [ "$IS_WIN" = "false" ] && LINK="$LINK -Wl,--lto-O3"
-               [ "$IS_WIN" = "true" ] && LINK="$LINK --target=x86_64-pc-windows-gnu -L/usr/lib/gcc/x86_64-w64-mingw32/12-win32/ -lbcrypt -static-libgcc"
+               [ "$IS_WIN" = "true" ] && LINK="$LINK --target=x86_64-pc-windows-gnu -L/usr/lib/gcc/x86_64-w64-mingw32/12-win32/ -lbcrypt -lntdll -static-libgcc"
                [ "$IS_WIN" = "true" ] && COMPILE="$COMPILE --target=x86_64-pc-windows-gnu"
                LDK_LIB="$1"/lightning-c-bindings/target/$LDK_TARGET/release/libldk.a
                if [ "$IS_MAC" = "false" -a "$IS_WIN" = "false" -a "$4" = "false" ]; then