server: statically link to sqlite3 when targeting musl (#231)

- fix #228
- the musl libc is used on Alpine, a minimal linux distribution commonly
  used in docker images. It's also used on OpenWRT which might be of
  interest to innernet.
pull/239/head
P Stark 2022-08-10 22:16:31 +02:00 committed by GitHub
parent df3b4ae78f
commit 0fb0ac7ab1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -47,6 +47,9 @@ wireguard-control = { path = "../wireguard-control" }
[target.'cfg(target_os = "linux")'.dependencies] [target.'cfg(target_os = "linux")'.dependencies]
socket2 = { version = "0.4", features = ["all"] } socket2 = { version = "0.4", features = ["all"] }
[target.'cfg(target_env = "musl")'.dependencies]
rusqlite = { version = "0.28", features = ["bundled"] }
[dev-dependencies] [dev-dependencies]
anyhow = "1" anyhow = "1"
tempfile = "3" tempfile = "3"