]> Gentwo Git Trees - linux/.git/commit
tools/power/cpupower: Support building libcpupower statically
authorZuo An <zuoan.penguin@gmail.com>
Fri, 24 Oct 2025 05:46:47 +0000 (05:46 +0000)
committerShuah Khan <skhan@linuxfoundation.org>
Wed, 5 Nov 2025 16:56:01 +0000 (09:56 -0700)
commit059835bbfa282918a1e8e5e2d9628aa600093052
tree96a4accd3265a5a60a36a2f803aceb421f5d634e
parent3a8660878839faadb4f1a6dd72c3179c1df56787
tools/power/cpupower: Support building libcpupower statically

The cpupower Makefile built and installed libcpupower as a shared
library (libcpupower.so) without passing `STATIC=true`, but did not
build a static version of the library even with `STATIC=true`. (Only the
programs were static). Thus, out-of-tree programs using libcpupower
were unable to link statically against the library without having access
to intermediate object files produced during the build.

This fixes that situation by ensuring that libcpupower.a is built and
installed when `STATIC=true` is specified.

Link: https://lore.kernel.org/r/x7geegquiks3zndiavw2arihdc2rk7e2dx3lk7yxkewqii6zpg@tzjijqxyzwmu
Signed-off-by: Zuo An <zuoan.penguin@gmail.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
tools/power/cpupower/Makefile