浏览代码

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 <olaf@aepfle.de>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
Olaf Hering 9 年之前
父节点
当前提交
809b6ecb53
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      tools/thermal/tmon/Makefile

+ 3 - 0
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 || \
 		     pkg-config --libs $(STATIC) panel ncurses 2> /dev/null || \
 		     echo -lpanel -lncurses)
 		     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 = tmon.o tui.o sysfs.o pid.o
 OBJS +=
 OBJS +=