Skip to content
Snippets Groups Projects
Commit dbe69a9e authored by Dmitry Rodionov's avatar Dmitry Rodionov Committed by Yaroslav Dynnikov
Browse files

chore: use -rdynamic instead of -export-dynamic

It has been observed that on Fedora -export-dynamic triggers some
reincarnation of this bug:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47390

TLDR: it treated leading -e as entrypoint argument so resulting binary
was completely broken, i e there was no main in it and entrypoint was
set to unrelated deregister_tm_clones. Big thanks to @gmoshkin for
finding the solution and to @funbringer for assistance with debugging
parent 423055e2
No related branches found
No related tags found
1 merge request!748chore: use -rdynamic instead of -export-dynamic
Pipeline #28064 failed
......@@ -339,7 +339,10 @@ fn build_tarantool(jsc: Option<&jobserver::Client>, build_root: &Path) {
rustc::link_lib_dynamic("resolv");
} else {
// not supported on macos
rustc::link_arg("-export-dynamic");
// We use -rdynamic instead of -export-dynamic
// because on fedora this likely triggers this bug
// https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47390
rustc::link_arg("-rdynamic");
rustc::link_lib_dynamic("stdc++");
}
}
......
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