Skip to content

Commit f53a305

Browse files
committed
List xml2/curl for macOS linker dependencies
1 parent 47c43c8 commit f53a305

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Package.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,8 @@ let package = Package(
142142
"Clibxml2",
143143
],
144144
path: "Sources/_CFXMLInterface",
145-
cSettings: interfaceBuildSettings
145+
cSettings: interfaceBuildSettings,
146+
linkerSettings: [.linkedLibrary("xml2", .when(platforms: [.macOS]))]
146147
),
147148
.target(
148149
name: "_CFURLSessionInterface",
@@ -151,7 +152,8 @@ let package = Package(
151152
"Clibcurl",
152153
],
153154
path: "Sources/_CFURLSessionInterface",
154-
cSettings: interfaceBuildSettings
155+
cSettings: interfaceBuildSettings,
156+
linkerSettings: [.linkedLibrary("curl", .when(platforms: [.macOS]))]
155157
),
156158
.systemLibrary(
157159
name: "Clibxml2",

0 commit comments

Comments
 (0)