Skip to content
Snippets Groups Projects
Commit 43866593 authored by Denis Smirnov's avatar Denis Smirnov Committed by Yaroslav Dynnikov
Browse files

fix(build): symbol not found on macos

An attempt to start picodata on macos returns an error:
symbol not found in flat namespace '_res_9_getservers'

The reason is that macos executables require libresolv.dylib to
use resolv.h.
parent 0444d914
No related branches found
No related tags found
1 merge request!476fix: MacOS building and linking problems
......@@ -227,6 +227,9 @@ fn build_tarantool(build_root: &Path) {
if cfg!(target_os = "macos") {
// -lc++ instead of -lstdc++ on macos
rustc::link_lib_dynamic("c++");
// -lresolv on macos
rustc::link_lib_dynamic("resolv");
} else {
// not supported on macos
rustc::link_arg("-export-dynamic");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment