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)