Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

tools: lib: thermal: Correct CFLAGS and LDFLAGS in pkg-config template

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

authored by

Romain Gantois and committed by
Daniel Lezcano
965ef09a 9ace4753

+2 -2
+2 -2
tools/lib/thermal/libthermal.pc.template
··· 8 8 Description: thermal library 9 9 Requires: libnl-3.0 libnl-genl-3.0 10 10 Version: @VERSION@ 11 - Libs: -L${libdir} -lnl-genl-3 -lnl-3 12 - Cflags: -I${includedir} -I${include}/libnl3 11 + Libs: -L${libdir} -lnl-genl-3 -lnl-3 -lthermal 12 + Cflags: -I${includedir} -I${includedir}/libnl3