storj-uplink: 1.119.15 -> 1.120.4 (#375732)
[NixPkgs.git] / pkgs / by-name / li / libdeltachat / no-static-lib.patch
blob9dc4ffd0ec074df01b316564a174f4fcb8c2abdc
1 diff --git a/CMakeLists.txt b/CMakeLists.txt
2 index 5587e391..a18092f5 100644
3 --- a/CMakeLists.txt
4 +++ b/CMakeLists.txt
5 @@ -20,7 +20,6 @@ endif()
7 add_custom_command(
8 OUTPUT
9 - "${CMAKE_BINARY_DIR}/target/release/libdeltachat.a"
10 "${CMAKE_BINARY_DIR}/target/release/libdeltachat.${DYNAMIC_EXT}"
11 "${CMAKE_BINARY_DIR}/target/release/pkgconfig/deltachat.pc"
12 COMMAND
13 @@ -35,12 +34,10 @@ add_custom_target(
14 lib_deltachat
15 ALL
16 DEPENDS
17 - "${CMAKE_BINARY_DIR}/target/release/libdeltachat.a"
18 "${CMAKE_BINARY_DIR}/target/release/libdeltachat.${DYNAMIC_EXT}"
19 "${CMAKE_BINARY_DIR}/target/release/pkgconfig/deltachat.pc"
22 install(FILES "deltachat-ffi/deltachat.h" DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
23 -install(FILES "${CMAKE_BINARY_DIR}/target/${ARCH_DIR}/release/libdeltachat.a" DESTINATION ${CMAKE_INSTALL_LIBDIR})
24 install(FILES "${CMAKE_BINARY_DIR}/target/${ARCH_DIR}/release/libdeltachat.${DYNAMIC_EXT}" DESTINATION ${CMAKE_INSTALL_LIBDIR})
25 install(FILES "${CMAKE_BINARY_DIR}/target/${ARCH_DIR}/release/pkgconfig/deltachat.pc" DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
26 diff --git a/deltachat-ffi/Cargo.toml b/deltachat-ffi/Cargo.toml
27 index d66cb00f..48347a48 100644
28 --- a/deltachat-ffi/Cargo.toml
29 +++ b/deltachat-ffi/Cargo.toml
30 @@ -11,7 +11,7 @@ categories = ["cryptography", "std", "email"]
32 [lib]
33 name = "deltachat"
34 -crate-type = ["cdylib", "staticlib"]
35 +crate-type = ["cdylib"]
37 [dependencies]
38 deltachat = { path = "../", default-features = false }