aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Kraft <d@domob.eu>2019-02-01 13:51:44 +0100
committerRoman Lebedev <lebedev.ri@gmail.com>2019-02-01 15:51:44 +0300
commit97393e5ef820fda0330830d56c774949b4cfbb29 (patch)
tree1c6ddfe74f19c413111e76b54d1f662c36fb544b
parent785e2c3158589e8ef48c59ba80e48d76bdbd8902 (diff)
downloadgoogle-benchmark-97393e5ef820fda0330830d56c774949b4cfbb29.tar.gz
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
-rw-r--r--cmake/benchmark.pc.in1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/benchmark.pc.in b/cmake/benchmark.pc.in
index 1e84bff..43ca8f9 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}