-
Notifications
You must be signed in to change notification settings - Fork 294
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
fdr400
wants to merge
72
commits into
userver-framework:develop
from
fdr400:fdr400-more-static-linkage
Closed
Changes from 4 commits
Commits
Show all changes
72 commits
Select commit
Hold shift + click to select a range
f9577de
First try
fdr400 974d97e
Statis mongo and mysql
fdr400 476a639
Try fix openssl alpine
fdr400 5c31308
Fix alpine zlib
fdr400 ffebb90
Fix static boost
fdr400 3a3272c
Remove common name from module helpers
fdr400 ce2ef8a
Fix alpine
fdr400 c921d2e
Try fix MacOS
fdr400 d0c6d7a
Merge branch 'develop' into fdr400-more-static-linkage
fdr400 008adcf
Try fix macos static boost linkage
fdr400 33bf3f6
Fix MacOS cannot find -lzstd
fdr400 a89d8c0
Fix boost static linkage
fdr400 749b7ba
Try fix docker mysql
fdr400 305e1f9
Fix MacOS again
fdr400 26b30d0
Do not link statically with mongoc on old Ubuntus
fdr400 454c627
Again
fdr400 b5dde1d
Do not use bandled libs for gRPC
fdr400 1659a73
Fix libcares
fdr400 e5bfae9
Install c-ares
fdr400 18d2ea5
Link static clickhouse
fdr400 d5f77d4
Use brew curl
fdr400 fecf18d
Try fix clickhouse
fdr400 1a8f802
Try fix clickhouse again
fdr400 8c10e48
Try fix clickhouse
fdr400 3c53c19
try fix abseil
fdr400 5a234ec
fix abseil
fdr400 74ffb0f
Fix clickhouse
fdr400 7104b98
Try temporary fix mac
fdr400 1956aea
Consistent Kafka build
fdr400 31866ca
Try use sasl2 from brew
fdr400 a3b6815
Add kafka service to conan samples
fdr400 7f2f087
Try fiz link with zstd
fdr400 ed16f85
Fix kafka version
fdr400 134acba
Maybe linker problem
fdr400 32df506
Add options to to use static libs
fdr400 58cdb80
Use static libs in alpine and in MacOS
fdr400 46c3121
correct cache keys
fdr400 3fd84ee
Some fixes
fdr400 c7d44bc
Try try try
fdr400 cdfbeb4
Debug
fdr400 61aba8c
More linker flags
fdr400 01d0eec
Maybe order makes sense?
fdr400 4735302
Use framework for all libs
fdr400 42faf9b
Use dynamic ldap
fdr400 b907c8a
Install openldap
fdr400 04c07ea
Fix for old boost
fdr400 fd29288
Fix libname
fdr400 dd787f9
Link openldap
fdr400 6981253
Use ICU data
fdr400 2256f75
Find dynamic grpc
fdr400 d1e00f7
Fix not pq patch
fdr400 e8a9e06
Fix conan
fdr400 7e79c0f
Try without gold
fdr400 e62d01b
No static for gcc
fdr400 3d467dd
Remove strange alias
fdr400 c02b43e
Add if
fdr400 8c0dabf
Build static rocksdb
fdr400 4c4fe3b
do not build shared
fdr400 067163f
Remove rocks package stub
fdr400 ea1dca1
More deps for alpine + disable GDB for MacOS
fdr400 7ece471
Try rabbitmq for alpine
fdr400 8b304a2
Install rocksdb for alpine
fdr400 09638db
More consistent names
fdr400 35b42ac
Do not find libcityhash for Linux clickhouse
fdr400 6934d7e
Fix clickhouse
fdr400 8a3056b
Do not try to find static clickhouse Linux
fdr400 dbd6a21
Fix mongo install
fdr400 645bf31
Do not link to Iconv if it is bultin
fdr400 8affca6
Rollback
fdr400 555af6b
Fix install
fdr400 4627238
Better for Conan
fdr400 86b2006
Update
fdr400 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
include_guard(GLOBAL) | ||
|
||
find_package(bson-1.0 QUIET CONFIG) | ||
find_package(mongoc-1.0 QUIET CONFIG) | ||
if(bson-1.0_FOUND AND mongoc-1.0_FOUND) | ||
message(STATUS "Using config version for bson + mongoc") | ||
add_library(bson ALIAS mongo::bson_static) | ||
add_library(mongoc ALIAS mongo::mongoc_static) | ||
else() | ||
find_package(bson REQUIRED) | ||
find_package(mongoc REQUIRED) | ||
endif() | ||
|
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
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
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
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
This file was deleted.
Oops, something went wrong.
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,7 @@ _userver_module_find_include( | |
) | ||
|
||
_userver_module_find_library( | ||
NAMES ev | ||
NAMES libev.a ev | ||
) | ||
|
||
_userver_module_end() |
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
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
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
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
This file was deleted.
Oops, something went wrong.
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
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
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
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
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
This file was deleted.
Oops, something went wrong.
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
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
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
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,27 @@ | ||
ares | ||
boost | ||
c-ares | ||
ccache | ||
cctz | ||
cmake | ||
coreutils | ||
cyrus-sasl | ||
fmt | ||
git | ||
google-benchmark | ||
boost | ||
ares | ||
cctz | ||
libev | ||
fmt | ||
googletest | ||
hiredis | ||
jemalloc | ||
krb5 | ||
libev | ||
librdkafka | ||
mariadb | ||
mongo-c-driver | ||
nghttp2 | ||
ninja | ||
pugixml | ||
openssl | ||
yaml-cpp | ||
librdkafka | ||
rocksdb | ||
postgresql@16 | ||
redis | ||
pugixml | ||
rocksdb | ||
yaml-cpp | ||
zlib | ||
c-ares | ||
coreutils | ||
mongo-c-driver | ||
mariadb |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Это стоит в опцию какой-нибудь обернуть, потому что у нас явно не везде всё для статических либ готово