File tree 2 files changed +16
-1
lines changed
2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 81
81
--disable-java-modules
82
82
"
83
83
CMAKE_CONFIGURE_FLAGS="
84
+ `[ $CC = clang ] && echo '-DENABLE_FORCE_GNU99=ON' || true`
84
85
-DSUMMARY_VERBOSE=ON
85
86
-DCMAKE_BUILD_TYPE=Debug
86
87
-DCMAKE_INSTALL_PREFIX=${SYSLOG_NG_INSTALL_DIR}
90
91
-DENABLE_JOURNALD=OFF
91
92
-DENABLE_JAVA=OFF
92
93
-DENABLE_JAVA_MODULES=OFF
93
- -DENABLE_GRPC=OFF
94
94
"
95
95
PKG_CONFIG_PATH="${HOMEBREW_PREFIX}/opt/openssl@3/lib/pkgconfig:${HOMEBREW_PREFIX}/opt/net-snmp/lib/pkgconfig:${HOMEBREW_PREFIX}/lib/pkgconfig:${MACPORTS_PREFIX}/lib/pkgconfig:${PKG_CONFIG_PATH}"
96
96
PATH="${HOMEBREW_PREFIX}/opt/bison/bin:${HOMEBREW_PREFIX}/opt/libnet/bin:${HOMEBREW_PREFIX}/opt/net-snmp/bin:${HOMEBREW_PREFIX}/bin:${HOMEBREW_PREFIX}/sbin:${PYTHONUSERBASE}/bin:${MACPORTS_PREFIX}/bin:${MACPORTS_PREFIX}/sbin:${PATH}"
Original file line number Diff line number Diff line change @@ -41,6 +41,21 @@ if (NOT DEFINED ENABLE_GRPC OR ENABLE_GRPC)
41
41
endif ()
42
42
43
43
if (GRPC_DEPS_FOUND)
44
+ # Workaround of https://github.com/protocolbuffers/protobuf/issues/18307
45
+ # The latest (BSD variants) protobuf builds are forcibly bound to libupd, so
46
+ # find_package(gRPC...) will fail with
47
+ # Targets not yet defined: protobuf::libupb, protobuf::protoc-gen-upb,
48
+ # protobuf::protoc-gen-upbdefs, protobuf::protoc-gen-upb_minitable
49
+ # Try to satisfy it temporally.
50
+ #
51
+ find_library (UPB_LIBRARIES NAMES upb)
52
+ if (UPB_LIBRARIES)
53
+ add_library (protobuf::libupb STATIC IMPORTED )
54
+ add_executable (protobuf::protoc-gen-upb IMPORTED )
55
+ add_executable (protobuf::protoc-gen-upbdefs IMPORTED )
56
+ add_executable (protobuf::protoc-gen-upb_minitable IMPORTED )
57
+ endif ()
58
+
44
59
find_package (gRPC 1.16.1 QUIET )
45
60
46
61
if (NOT gRPC_FOUND)
You can’t perform that action at this time.
0 commit comments