From 8df4995721f92512407c2c9165499a731dec34cc Mon Sep 17 00:00:00 2001 From: Elly Jones Date: Wed, 11 Jan 2012 17:27:01 -0500 Subject: [PATCH] [metrics] use libchromeos.pc BUG=chromium-os:24959 TEST=build Change-Id: I7038f5173c7b0949cbf88e6a9213d75e96ae142d Signed-off-by: Elly Jones Reviewed-on: https://gerrit.chromium.org/gerrit/14012 Reviewed-by: Mike Frysinger --- metrics/Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/metrics/Makefile b/metrics/Makefile index 072fb048e..46711c8e6 100644 --- a/metrics/Makefile +++ b/metrics/Makefile @@ -5,8 +5,10 @@ # Makefile for metrics utilities -- library, client and daemon # -CCONFIG = $(shell $(PKG_CONFIG) --cflags dbus-1 glib-2.0 dbus-glib-1) -LDCONFIG = $(shell $(PKG_CONFIG) --libs dbus-1 glib-2.0 gthread-2.0 dbus-glib-1) +PC_DEPS = dbus-1 glib-2.0 dbus-glib-1 libchromeos + +CCONFIG = $(shell $(PKG_CONFIG) --cflags $(PC_DEPS)) +LDCONFIG = $(shell $(PKG_CONFIG) --libs $(PC_DEPS) gthread-2.0) CXXFLAGS += -Wall -Werror -fPIC -fno-exceptions $(CCONFIG)