nixpkgs/pkgs/development/libraries/libdeltachat/no-static-lib.patch

39 lines
1.3 KiB
Diff
Raw Normal View History

2021-08-06 09:21:50 +00:00
diff --git a/CMakeLists.txt b/CMakeLists.txt
2021-11-07 22:25:23 +00:00
index 44ca43e7..8b6960dd 100644
2021-08-06 09:21:50 +00:00
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
2021-11-07 22:25:23 +00:00
@@ -14,7 +14,6 @@ find_program(CARGO cargo)
2021-08-06 09:21:50 +00:00
add_custom_command(
OUTPUT
- "target/release/libdeltachat.a"
"target/release/libdeltachat.${DYNAMIC_EXT}"
"target/release/pkgconfig/deltachat.pc"
COMMAND
2021-11-07 22:25:23 +00:00
@@ -39,12 +38,10 @@ add_custom_target(
2021-08-06 09:21:50 +00:00
lib_deltachat
ALL
DEPENDS
- "target/release/libdeltachat.a"
"target/release/libdeltachat.${DYNAMIC_EXT}"
"target/release/pkgconfig/deltachat.pc"
)
install(FILES "deltachat-ffi/deltachat.h" DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
-install(FILES "target/release/libdeltachat.a" DESTINATION ${CMAKE_INSTALL_LIBDIR})
install(FILES "target/release/libdeltachat.${DYNAMIC_EXT}" DESTINATION ${CMAKE_INSTALL_LIBDIR})
install(FILES "target/release/pkgconfig/deltachat.pc" DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
diff --git a/deltachat-ffi/Cargo.toml b/deltachat-ffi/Cargo.toml
2021-11-07 22:25:23 +00:00
index de0fbafe..120efec9 100644
2021-08-06 09:21:50 +00:00
--- a/deltachat-ffi/Cargo.toml
+++ b/deltachat-ffi/Cargo.toml
@@ -12,7 +12,7 @@ categories = ["cryptography", "std", "email"]
[lib]
name = "deltachat"
-crate-type = ["cdylib", "staticlib"]
+crate-type = ["cdylib"]
[dependencies]
deltachat = { path = "../", default-features = false }