pkg-config --libs reports benchmark and benchmark_main when in reality Debug builds end up as "libbenchmarkd.a" & "libbenchmark_maind.a". Solution is to configure benchmark.pc according to build type or just have the same name. Probably different build types should reside in different locations to avoid name collisions.