Browse Source

Add missing linker settings for zlib (#2)

George Barnett 1 năm trước cách đây
mục cha
commit
a071b60cdb
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 4 1
      Package.swift

+ 4 - 1
Package.swift

@@ -69,7 +69,10 @@ let targets: [Target] = [
   // C-module for z-lib shims
   .target(
     name: "CGRPCZlib",
-    dependencies: []
+    dependencies: [],
+    linkerSettings: [
+      .linkedLibrary("z")
+    ]
   ),
 
   // Core module containing shared compionents for the NIOPosix and NIOTS variants.