blob: c595577c937fa876b50e4e59f208ed539f3360f9 [file]
FILESEXTRAPATHS:prepend:gbmc := "${THISDIR}/${PN}:"
SRC_URI:append:gbmc = " \
file://DOWNSTREAM_0001-core-tsi-Silence-SSL_get_servername-errors.patch \
file://0001-gRPC-Add-grpc_authorization_provider-to-CMake.patch \
"
# Apply to both C and C++ code (gRPC has a large C core)
# hide internal engine symbols within the shared libraries
# unless they are explicitly marked as public API.
CFLAGS += "-ffunction-sections -fdata-sections"
CXXFLAGS += "-ffunction-sections -fdata-sections"
# Linker flag to strip unused sections
LDFLAGS += "-Wl,--gc-sections"
# Enable CMake Interprocedural Optimization (LTO)
EXTRA_OECMAKE += " \
-DCMAKE_INTERPROCEDURAL_OPTIMIZATION=ON \
"