touchup pkg-config/library handling

Make sure we execute pkg-config twice in the ebuild and not once
per object compile/link.

Fix the order of libraries when linking libmetric -- we need them to
come after the objects, and we need to link in libbase since we use
symbols from it.  (Things happen to be working now because libpolicy
accidentally exports some symbols from libbase.)

TEST=`emerge-x86-alex metrics` still works

Change-Id: Ic8381ce9cb3e8a6d81d45d613ac66fea8a12b669
Reviewed-by: Julian Pastarmov <>
Commit-Ready: Mike Frysinger <>
Tested-by: Mike Frysinger <>
1 file changed
tree: 6db0d33b24e41cdc2a1d8aa94ae808923b9611aa
  1. metrics/