From aa3bf3768a2b4ac321584bc1c2a74a6a2e7fde21 Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Thu, 14 Jul 2016 10:27:10 -0700 Subject: [PATCH] Fix rpath for host benchmarks Host benchmarks are installed in out/host/*/nativetest// now, so the rpath needs to include ../../lib. Make benchmarkLinker extend testBinaryLinker in order to pick up the correct rpath. Change-Id: I3c34aee8d3c21a08b75258c1d5caf6c9fb6feab3 --- cc/cc.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cc/cc.go b/cc/cc.go index f169a385d..8391cb564 100644 --- a/cc/cc.go +++ b/cc/cc.go @@ -2311,11 +2311,11 @@ func testLibraryFactory() (blueprint.Module, []interface{}) { } type benchmarkLinker struct { - binaryLinker + testBinaryLinker } func (benchmark *benchmarkLinker) deps(ctx BaseModuleContext, deps Deps) Deps { - deps = benchmark.binaryLinker.deps(ctx, deps) + deps = benchmark.testBinaryLinker.deps(ctx, deps) deps.StaticLibs = append(deps.StaticLibs, "libgoogle-benchmark") return deps }