Skip to content

PS-10627 fix: Fix linking issues on Debian (missing zlib symbols coming from libcrypto)#90

Merged
percona-ysorokin merged 1 commit intomainfrom
zstd_dependency
Mar 12, 2026
Merged

PS-10627 fix: Fix linking issues on Debian (missing zlib symbols coming from libcrypto)#90
percona-ysorokin merged 1 commit intomainfrom
zstd_dependency

Conversation

@percona-ysorokin
Copy link
Collaborator

@percona-ysorokin percona-ysorokin commented Feb 10, 2026

https://perconadev.atlassian.net/browse/PS-10627

Fixed an issue with not being able to link main project executable on Debian platforms where
'libcrypto' is built with 'zstd'.

Reworked the way how we build AWS SDK C++ libraries. We now pass 2 additional CMake
options ('S2N_USE_CRYPTO_SHARED_LIBS=ON' and
'CMAKE_EXPORT_COMPILE_COMMANDS=ON') which instructs Cmake to use shared version
of the 'libcrypto' when building AWS SDK C++ libraries.

In addition, we also pass the same 'S2N_USE_CRYPTO_SHARED_LIBS' to the main project
CMake execution in order to get rid of static 'libcrypto.a' dependency coming from the
second level dependencies of 'aws-cpp-sdk-s3-crt'.

…ng from libcrypto)

https://perconadev.atlassian.net/browse/PS-10627

Fixed an issue with not being able to link main project executable on Debian platforms where
'libcrypto' is built with 'zstd'.

Reworked the way how we build AWS SDK C++ libraries. We now pass 2 additional CMake
options ('S2N_USE_CRYPTO_SHARED_LIBS=ON' and
'CMAKE_EXPORT_COMPILE_COMMANDS=ON') which instructs Cmake to use shared version
of the 'libcrypto' when building AWS SDK C++ libraries.

In addition, we also pass the same 'S2N_USE_CRYPTO_SHARED_LIBS' to the main project
CMake execution in order to get rid of static 'libcrypto.a' dependency coming from the
second level dependencies of 'aws-cpp-sdk-s3-crt'.
@percona-ysorokin percona-ysorokin changed the title Added zstd as a dependency library PS-10627 fix: Fix linking issues on Debian (missing zlib symbols coming from libcrypto) Mar 12, 2026
@percona-ysorokin percona-ysorokin merged commit 545f5c0 into main Mar 12, 2026
7 checks passed
@percona-ysorokin percona-ysorokin deleted the zstd_dependency branch March 12, 2026 19:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant