Skip to content

Commit 965ef09

Browse files
rgantoisdlezcano
authored andcommitted
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
1 parent 9ace475 commit 965ef09

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tools/lib/thermal/libthermal.pc.template

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ Name: libthermal
88
Description: thermal library
99
Requires: libnl-3.0 libnl-genl-3.0
1010
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

0 commit comments

Comments
 (0)