[DocDB] Fix linker flags to detect undefined symbols during build rather than in runtime #16412
Closed
1 task done
Labels
area/docdb
YugabyteDB core features
kind/enhancement
This is an enhancement of an existing feature
priority/medium
Medium priority issue
Projects
Jira Link: DB-5823
Description
Commit ac72f22 removed linker flags
-Wl,--no-undefined
and-Wl,--no-allow-shlib-undefined
because some of the shared libraries we build rely e.g. on tcmalloc hooks, whichwill be only provided at runtime, but not at linking time of the shared library.
As a side effect that change made it impossible for linked to catch undefined symbols and when some symbol is undefined, we only will get failure in runtime.
Warning: Please confirm that this issue does not contain any sensitive information
The text was updated successfully, but these errors were encountered: