From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751494AbbJBJvA (ORCPT ); Fri, 2 Oct 2015 05:51:00 -0400 Received: from mo4-p00-ob.smtp.rzone.de ([81.169.146.220]:28037 "EHLO mo4-p00-ob.smtp.rzone.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750709AbbJBJu6 (ORCPT ); Fri, 2 Oct 2015 05:50:58 -0400 X-RZG-AUTH: :P2EQZWCpfu+qG7CngxMFH1J+yackYocTD1iAi8x+OWi/zfN1cLnDYUgsRVyMl4Hh95eBMq5urGmcLXFm8w1jh+YBTMk= X-RZG-CLASS-ID: mo00 From: Olaf Hering To: Zhang Rui , Jacob Pan Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org, Olaf Hering Subject: [PATCH] tools/thermal: tmon: use pkg-config also for CFLAGS Date: Fri, 2 Oct 2015 09:50:45 +0000 Message-Id: <1443779445-19821-1-git-send-email-olaf@aepfle.de> X-Mailer: git-send-email 2.5.2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The header 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 --- 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 +=