mirror of
https://github.com/D-Modem/app.git
synced 2026-11-28 17:38:05 -08:00
Swift packages: link SystemConfiguration (libre's srv.c reads macOS's DNS servers)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B82eRUcd5i5X7Q7F2QBNEF
This commit is contained in:
2 files changed
+10
-2
No files matched your search
@@ -24,7 +24,11 @@ let engineLinking: [LinkerSetting] = [
|
||||
]
|
||||
#else
|
||||
let engine: Target = .binaryTarget(name: "DModemEngine", path: "../../build-apple/DModemEngine.xcframework")
|
||||
let engineLinking: [LinkerSetting] = [.linkedLibrary("c++"), .linkedLibrary("resolv")]
|
||||
let engineLinking: [LinkerSetting] = [
|
||||
.linkedLibrary("c++"), .linkedLibrary("resolv"),
|
||||
// libre asks the system for its DNS servers (srv.c, SCDynamicStore)
|
||||
.linkedFramework("SystemConfiguration"), .linkedFramework("CoreFoundation"),
|
||||
]
|
||||
#endif
|
||||
|
||||
let package = Package(
|
||||
|
||||
@@ -14,7 +14,11 @@ let package = Package(
|
||||
.testTarget(
|
||||
name: "DModemSmokeTests",
|
||||
dependencies: ["DModemEngine"],
|
||||
linkerSettings: [.linkedLibrary("c++"), .linkedLibrary("resolv")]
|
||||
linkerSettings: [
|
||||
.linkedLibrary("c++"), .linkedLibrary("resolv"),
|
||||
// libre asks macOS for its DNS servers (srv.c, SCDynamicStore)
|
||||
.linkedFramework("SystemConfiguration"), .linkedFramework("CoreFoundation"),
|
||||
]
|
||||
),
|
||||
]
|
||||
)
|
||||
Reference in new issue
Block a user