lkml.org 
[lkml]   [2015]   [Oct]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [PATCH] tools/thermal: tmon: use pkg-config also for CFLAGS
On Fri,  2 Oct 2015 09:50:45 +0000
Olaf Hering <olaf@aepfle.de> wrote:

> The header <panel.h> might be in /usr/include/ncursesw, which is not
> part of the standard include path. This fixes compile on openSUSE.
>
Acked:by: Jacob Pan <jacob.jun.pan@linux.intel.com>

thanks

> Signed-off-by: Olaf Hering <olaf@aepfle.de>
> ---
> tools/thermal/tmon/Makefile | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/tools/thermal/tmon/Makefile b/tools/thermal/tmon/Makefile
> index 2e83dd3..3a961e9 100644
> --- a/tools/thermal/tmon/Makefile
> +++ b/tools/thermal/tmon/Makefile
> @@ -22,6 +22,9 @@ TMON_LIBS += $(shell pkg-config --libs $(STATIC)
> panelw ncursesw 2> /dev/null || pkg-config --libs $(STATIC) panel
> ncurses 2> /dev/null || \ echo -lpanel -lncurses)
>
> +CFLAGS += $(shell pkg-config --cflags $(STATIC) panelw ncursesw
> 2> /dev/null || \
> + pkg-config --cflags $(STATIC) panel ncurses
> 2> /dev/null) +
> OBJS = tmon.o tui.o sysfs.o pid.o
> OBJS +=
>

[Jacob Pan]


\
 
 \ /
  Last update: 2015-10-03 15:21    [from the cache]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and my Meterkast|Read the blog