Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat build: prefere static libs when possible #821

Closed

Conversation

fdr400
Copy link
Member

@fdr400 fdr400 commented Jan 6, 2025


Note: by creating a PR or an issue you automatically agree to the CLA. See CONTRIBUTING.md. Feel free to remove this note, the agreement holds.

@@ -1,12 +0,0 @@
_userver_module_begin(
NAME SSL
COMMON_NAME OpenSSL
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OpenSSL был последним cmake файлом использующим COMMON_NAME для _userver_module_begin. Можно будет ощутимо упростить userver_module* функции

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

понял, попробую изничтожить тогда

FindOpenSSL вроде бы с симейка 3.4 доступен, поэтому эти модули не нужны (да и они кажется не использовались вообще)

CMakeLists.txt Outdated
@@ -143,6 +143,11 @@ option(USERVER_FEATURE_OTLP "Provide asynchronous OTLP exporters" "${USERVER_LIB

set(CMAKE_DEBUG_POSTFIX d)

set(OPENSSL_USE_STATIC_LIBS ON)
Copy link
Member Author

@fdr400 fdr400 Jan 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Это стоит в опцию какой-нибудь обернуть, потому что у нас явно не везде всё для статических либ готово

@fdr400 fdr400 marked this pull request as ready for review January 9, 2025 07:11
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.

Link static all
2 participants