tools/thermal: tmon: use pkg-config also for CFLAGS
PATCH 1/1 tools/thermal: tmon: use pkg-config also for CFLAGS
The header <panel.h> might be in /usr/include/ncursesw, which is not part of the standard include path. This fixes compile on openSUSE.
Signed-off-by Olaf Hering <[email protected]>
--- tools/thermal/tmon/Makefile | 3 +++ 1 file changed, 3 insertions(+)
tools/thermal/tmon/Makefile +3 -0
@@ -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 +=
Quoted 3 lines · On Fri, 2 Oct 2015 09:50:45 +0000 Olaf Hering <[email protected]> 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 <[email protected]>
thanks
Quoted 16 lines
Signed-off-by Olaf Hering <[email protected]>--- tools/thermal/tmon/Makefile | 3 +++ 1 file changed, 3 insertions(+)tools/thermal/tmon/Makefile +0
-0@@ -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|| \tools/thermal/tmon/Makefile +1
-0+ pkg-config --cflags $(STATIC) panel ncurses
Quoted 4 lines
2>
/dev/null) +
OBJS = tmon.o tui.o sysfs.o pid.o
OBJS +=
[Jacob Pan]