Fix minor build issues, resulting in the tests now running
[ldk-swift-linux] / LDKSwift / Package.swift
index 4954c025b03fc92bd48468f08744582c0c0a5bf0..018bf23ccad3848e9bedcc8d4583857beb1a343a 100644 (file)
@@ -18,7 +18,11 @@ let package = Package(
         // Targets can depend on other targets in this package, and on products in packages this package depends on.
         .target(
             name: "LDKSwift",
-            dependencies: ["LDKCHeaders"]),
+            dependencies: ["LDKCHeaders"],
+            linkerSettings: [
+                .linkedLibrary("/root/ldk-c-bindings/lightning-c-bindings/target/debug/libldk.a"),
+                .linkedLibrary("/root/ldk-c-bindings/lightning-c-bindings/ldk_net.o")
+            ]),
         .testTarget(
             name: "LDKSwiftTests",
             dependencies: ["LDKSwift"]),