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
Branches
Tags
1 merge request!476fix: MacOS building and linking problems
...@@ -227,6 +227,9 @@ fn build_tarantool(build_root: &Path) { ...@@ -227,6 +227,9 @@ fn build_tarantool(build_root: &Path) {
if cfg!(target_os = "macos") { if cfg!(target_os = "macos") {
// -lc++ instead of -lstdc++ on macos // -lc++ instead of -lstdc++ on macos
rustc::link_lib_dynamic("c++"); rustc::link_lib_dynamic("c++");
// -lresolv on macos
rustc::link_lib_dynamic("resolv");
} else { } else {
// not supported on macos // not supported on macos
rustc::link_arg("-export-dynamic"); rustc::link_arg("-export-dynamic");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment