From 97393e5ef820fda0330830d56c774949b4cfbb29 Mon Sep 17 00:00:00 2001 From: Daniel Kraft Date: Fri, 1 Feb 2019 13:51:44 +0100 Subject: [PATCH] Add -lpthread to pkg-config Libs.private. (#755) Since pthread is required at least for GCC (according to the documentation), this should be reflected by the pkg-config file. The same is, for instance, also done by the gflags library: https://github.com/gflags/gflags/blob/1005485222e8b0feff822c5723ddcaa5abadc01a/cmake/package.pc.in#L13 --- cmake/benchmark.pc.in | 1 + 1 file changed, 1 insertion(+) diff --git a/cmake/benchmark.pc.in b/cmake/benchmark.pc.in index 1e84bff6..43ca8f91 100644 --- a/cmake/benchmark.pc.in +++ b/cmake/benchmark.pc.in @@ -8,4 +8,5 @@ Description: Google microbenchmark framework Version: @VERSION@ Libs: -L${libdir} -lbenchmark +Libs.private: -lpthread Cflags: -I${includedir}