summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorBrian Norris <computersforpeace@gmail.com>2015-02-17 18:18:35 -0800
committerZhang Rui <rui.zhang@intel.com>2015-02-28 13:52:48 +0800
commit96a0d99c72cc4eb4f1b2acb71580693b91b95b28 (patch)
treebd37b442b83cb25e611c4f4da8b5c85cf0bca09b /init
parent1b0eaa2cc2dc52dced546c1c8b0551cfc734d32d (diff)
downloadlinux-96a0d99c72cc4eb4f1b2acb71580693b91b95b28.tar.bz2
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 6b533269fb25 ("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 <computersforpeace@gmail.com> Acked-by: Jacob Pan <jacob.jun.pan@linux.intel.com> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions