]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
tools: lib: thermal: Correct CFLAGS and LDFLAGS in pkg-config template
authorRomain Gantois <romain.gantois@bootlin.com>
Fri, 26 Dec 2025 07:54:32 +0000 (08:54 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Tue, 20 Jan 2026 19:37:38 +0000 (20:37 +0100)
There are two issues with the current pkg-config template. Firstly, the
-lthermal linker flag is missing. Secondly, the libnl3 include directory
compiler flag references "include" instead of "includedir", which leads to
an unexpanded variable when pkg-config is called.

Add the missing -lthermal flag and correct the libnl3 include directory.

Signed-off-by: Romain Gantois <romain.gantois@bootlin.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://patch.msgid.link/20251226-libthermal-pkgconfig-v1-1-3406de5ca8ea@bootlin.com
tools/lib/thermal/libthermal.pc.template

index ac24d0ab17f51b725d6a5b53e63b5eefe11c4e1b..3b8a24d0a8b8c4fea68faf006c8e619106454b0c 100644 (file)
@@ -8,5 +8,5 @@ Name: libthermal
 Description: thermal library
 Requires: libnl-3.0 libnl-genl-3.0
 Version: @VERSION@
-Libs: -L${libdir} -lnl-genl-3 -lnl-3
-Cflags: -I${includedir} -I${include}/libnl3
+Libs: -L${libdir} -lnl-genl-3 -lnl-3 -lthermal
+Cflags: -I${includedir} -I${includedir}/libnl3