diff --git a/binding.gyp b/binding.gyp index 7d1a185f..62c99f69 100644 --- a/binding.gyp +++ b/binding.gyp @@ -37,7 +37,8 @@ "deltachat-core-rust", ], "libraries": [ - "../deltachat-core-rust/target/release/libdeltachat.a" + "../deltachat-core-rust/target/release/libdeltachat.a", + "-ldl", ], "conditions": [ [ "OS == 'mac'", { @@ -45,7 +46,13 @@ "-framework CoreFoundation", "-framework CoreServices", "-framework Security", + "-lresolv", ], + }, { # OS == 'linux' + "libraries": [ + "-lm", + "-lrt", + ] }], ], }, { # system_dc_core == 'true'