Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tools/thermal: tmon: use pkg-config to determine library dependencies
Some distros (e.g., Arch Linux) don't package the tinfo library separately from ncurses, so don't unconditionally include it. Instead, use pkg-config. The $(STATIC) ugliness is to handle the reported build case from commit 6b53326 ("tools/thermal: tmon: fix compilation errors when building statically"), where a developer wants to be able to build with: make LDFLAGS=-static which requires an additional pkg-config flag. Finally, support a lowest common denominator fallback (-lpanel -lncurses) for build systems that don't have pkg-config entries for ncurses. Signed-off-by: Brian Norris <[email protected]> Acked-by: Jacob Pan <[email protected]> Reviewed-by: Florian Fainelli <[email protected]> Signed-off-by: Zhang Rui <[email protected]>
- Loading branch information