1diff --git a/CMakeLists.txt b/CMakeLists.txt
2index 44ca43e7..8b6960dd 100644
3--- a/CMakeLists.txt
4+++ b/CMakeLists.txt
5@@ -14,7 +14,6 @@ find_program(CARGO cargo)
6
7 add_custom_command(
8 OUTPUT
9- "target/release/libdeltachat.a"
10 "target/release/libdeltachat.${DYNAMIC_EXT}"
11 "target/release/pkgconfig/deltachat.pc"
12 COMMAND
13@@ -39,12 +38,10 @@ add_custom_target(
14 lib_deltachat
15 ALL
16 DEPENDS
17- "target/release/libdeltachat.a"
18 "target/release/libdeltachat.${DYNAMIC_EXT}"
19 "target/release/pkgconfig/deltachat.pc"
20 )
21
22 install(FILES "deltachat-ffi/deltachat.h" DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
23-install(FILES "target/release/libdeltachat.a" DESTINATION ${CMAKE_INSTALL_LIBDIR})
24 install(FILES "target/release/libdeltachat.${DYNAMIC_EXT}" DESTINATION ${CMAKE_INSTALL_LIBDIR})
25 install(FILES "target/release/pkgconfig/deltachat.pc" DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
26diff --git a/deltachat-ffi/Cargo.toml b/deltachat-ffi/Cargo.toml
27index de0fbafe..120efec9 100644
28--- a/deltachat-ffi/Cargo.toml
29+++ b/deltachat-ffi/Cargo.toml
30@@ -12,7 +12,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 }