-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CMake: link gost.so statically to its caller
If any executable loads `gost.so`, the executable already either has `libcrypto.so` loaded or is statically linked against `libcrypto.a`. Anyway it already has all libcrypto (and libssl) symbols present. Without this patch `gost.so` is linked against `libcrypto,so`. As a result, a diamond dependency is introduced. If `gost.so` is then loaded by an executable which is statically linked against libcrypto, `ld` will insist on loading `libcripto.so`, despite the executable already having all necessary symbols. When the executable is statically linked, shared objects for libcrypto and libssl are usually not built, `ls` won't find them, and the caller will crush. The patch removes this unnecessary link dependency in `gost.so`, allowing it to be used by executables which are statically linked against libcrypto.
- Loading branch information
Sergei Ianovich
committed
Jan 10, 2022
1 parent
da0c648
commit 1d44b40
Showing
1 changed file
with
14 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters