From 10b5ea08ae97a2607703d088ef073e288d19ea09 Mon Sep 17 00:00:00 2001 From: Funda Wang Date: Fri, 23 Aug 2024 11:48:36 +0800 Subject: [PATCH] Specify -latomic_ops as private in pkg-config file (fix of commit 02a44ee1d) PR #655 (bdwgc). Actually, bdwgc itself may requires atomic_ops, but it does not require downstream packages (like guile) to require atomic_ops. Now we specify @ATOMIC_OPS_LIBS@ in Libs.private rather than in Libs, so that will not confuse downstream packages, especially when performing check. * bdw-gc.pc.in (Libs.private): Move @ATOMIC_OPS_LIBS@ from Libs. --- bdw-gc.pc.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bdw-gc.pc.in b/bdw-gc.pc.in index 23678f430..759bd9c0b 100644 --- a/bdw-gc.pc.in +++ b/bdw-gc.pc.in @@ -6,5 +6,6 @@ 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 @THREADDLLIBS@ +Libs: -L${libdir} -lgc @THREADDLLIBS@ +Libs.private: @ATOMIC_OPS_LIBS@ Cflags: -I${includedir}