0
0
Fork 0
mirror of https://github.com/netdata/netdata.git synced 2025-04-07 06:45:39 +00:00

Use bundled protobuf for openSUSE packages. ()

* 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:
Austin S. Hemmelgarn 2024-06-07 03:58:24 -04:00 committed by GitHub
parent 496f862158
commit 5b8142526c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 0 deletions

View file

@ -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

View file

@ -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