summaryrefslogtreecommitdiff
path: root/bdw-gc.pc.in
diff options
context:
space:
mode:
authorJonas Hahnfeld <hahnjo@hahnjo.de>2020-03-13 09:59:01 +0100
committerIvan Maidanski <ivmai@mail.ru>2020-04-02 10:25:12 +0300
commitd2c4444fea498114b892bc65887221e36aa1e3a1 (patch)
tree0650e27127078615427d48564f519e0a50d5ccfb /bdw-gc.pc.in
parent9069fe664ecee147628a44f0fe67f2605b34ae9d (diff)
downloadbdwgc-d2c4444fea498114b892bc65887221e36aa1e3a1.tar.gz
Add threading libraries to bdw-gc.pc
This is important when building static libraries in the multi-threaded case. In that case the application must link in all transitive dependencies. Without this patch, using only the flags from `pkg-config --cflags --libs .../bdw-gc.pc` results in many undefined references to pthread_* functions. * bdw-gc.pc.in (Libs): Add @THREADDLLIBS@
Diffstat (limited to 'bdw-gc.pc.in')
-rw-r--r--bdw-gc.pc.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/bdw-gc.pc.in b/bdw-gc.pc.in
index a32e7598..23678f43 100644
--- a/bdw-gc.pc.in
+++ b/bdw-gc.pc.in
@@ -6,5 +6,5 @@ includedir=@includedir@
Name: Boehm-Demers-Weiser Conservative Garbage Collector
Description: A garbage collector for C and C++
Version: @PACKAGE_VERSION@
-Libs: -L${libdir} @ATOMIC_OPS_LIBS@ -lgc
+Libs: -L${libdir} @ATOMIC_OPS_LIBS@ -lgc @THREADDLLIBS@
Cflags: -I${includedir}