1diff --git a/CMakeLists.txt b/CMakeLists.txt
2index 5587e391..a18092f5 100644
3--- a/CMakeLists.txt
4+++ b/CMakeLists.txt
5@@ -20,7 +20,6 @@ endif()
6
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"
20 )
21
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)
26diff --git a/deltachat-ffi/Cargo.toml b/deltachat-ffi/Cargo.toml
27index d66cb00f..48347a48 100644
28--- a/deltachat-ffi/Cargo.toml
29+++ b/deltachat-ffi/Cargo.toml
30@@ -11,7 +11,7 @@ categories = ["cryptography", "std", "email"]
31
32 [lib]
33 name = "deltachat"
34-crate-type = ["cdylib", "staticlib"]
35+crate-type = ["cdylib"]
36
37 [dependencies]
38 deltachat = { path = "../", default-features = false }