mirror of
https://github.com/netdata/netdata.git
synced 2025-04-07 06:45:39 +00:00
Use bundled protobuf for openSUSE packages. (#17827)
* Use bundled protobuf for openSUSE packages. Since their system copy seems to have major issues. * Force vendored Abseil to be a static build. Without this, we end up with linking issues if there’s an existing copy of Abseil on the system.
This commit is contained in:
parent
496f862158
commit
5b8142526c
2 changed files with 5 additions and 0 deletions
|
@ -360,8 +360,12 @@ happened, on your systems and applications.
|
|||
-DENABLE_BUNDLED_PROTOBUF=Off \
|
||||
%endif
|
||||
%else
|
||||
%if 0%{?suse_version:1}
|
||||
-DENABLE_BUNDLED_PROTOBUF=On \
|
||||
%else
|
||||
-DENABLE_BUNDLED_PROTOBUF=Off \
|
||||
%endif
|
||||
%endif
|
||||
%if %{_have_ml}
|
||||
-DENABLE_ML=On \
|
||||
%else
|
||||
|
|
|
@ -28,6 +28,7 @@ function(netdata_bundle_protobuf)
|
|||
if(NEED_ABSL)
|
||||
set(ABSL_PROPAGATE_CXX_STD On)
|
||||
set(ABSL_ENABLE_INSTALL Off)
|
||||
set(BUILD_SHARED_LIBS Off)
|
||||
|
||||
message(STATUS "Preparing bundled Abseil (required by bundled Protobuf)")
|
||||
FetchContent_Declare(absl
|
||||
|
|
Loading…
Add table
Reference in a new issue