Link chaps with libprotobuf-lite instead of libprotobuf.
The attributes.proto file already has the option:
option optimize_for = LITE_RUNTIME;
which generates code compatible with the protobuf-lite version of the
library. This patch makes the code link using the -lite version
instead of the full version.
BUG=chromium:383182
TEST=Checked that no undefined symbol on chapsd is provided by libprotobuf but not libprotobuf-lite.
TEST=build_packages on link and checked with ldd that libprotobuf-lite is used:
$ ldd /build/link/usr/lib64/libchaps.so /build/link/usr/sbin/chapsd /build/link/usr/bin/chaps_client | grep proto
TEST=local `make` works; resulting build-opt-local/chapsd uses libprotobuf-lite.
Change-Id: I9fddbf0136ff97ba06d13d69afeadcbe515291be
Reviewed-on: https://chromium-review.googlesource.com/203336
Tested-by: Alex Deymo <deymo@chromium.org>
Reviewed-by: Darren Krahn <dkrahn@chromium.org>
Commit-Queue: Alex Deymo <deymo@chromium.org>
2 files changed