clean up build & convert to SLOT-ed libbase

This includes a couple of fixes:
 - use the right compiler flag names
 - execute pkg-config twice total, and not once per compile
 - build against SLOT-ed libbase
 - drop link info that was just for libbase as that handles
   things all by itself now without bothering external users

TEST=`emerge-x86-alex metrics` still works
TEST=`cros_run_unit_tests --board x86-alex -p metrics` passes

Change-Id: I40b9216c9e2a1edef476f9369d524e6a4bf26012
Reviewed-by: Luigi Semenzato <>
Reviewed-by: Darin Petkov <>
Commit-Ready: Mike Frysinger <>
Tested-by: Mike Frysinger <>
1 file changed
tree: 3465088ee4e6a898d108c8527b751512232f4fea
  1. metrics/