[linux-yocto] [PATCH 1/1] perf: Add HAVE_SLANG_SUPPORT back if slang support is found

Tom Zanussi tom.zanussi at linux.intel.com
Mon Mar 10 15:36:18 PDT 2014


The following commit:

  commit d3a1c378d4d0099efa61c7c4c56f344ee50855f1
  Author: Liang Li <liang.li at windriver.com>
  Date:   Wed Aug 22 16:04:50 2012 +0800

      perf: add SLANG_INC for slang.h

seems to have inadvertently added:

  -    CFLAGS += -DHAVE_SLANG_SUPPORT

for no good reason.  This results in failed perf builds, which adding
it back fixes.

Signed-off-by: Tom Zanussi <tom.zanussi at linux.intel.com>
---
 tools/perf/config/Makefile | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/tools/perf/config/Makefile b/tools/perf/config/Makefile
index 4967852..48b28ef 100644
--- a/tools/perf/config/Makefile
+++ b/tools/perf/config/Makefile
@@ -364,9 +364,10 @@ ifndef NO_SLANG
     msg := $(warning slang not found, disables TUI support. Please install slang-devel or libslang-dev);
     NO_SLANG := 1
   else
-    # Some releases like Fedora has /usr/include/slang/slang.h other than /usr/include/slang.h
+    # Some releases like Fedora have /usr/include/slang/slang.h instead of /usr/include/slang.h
     SLANG_INC ?= -idirafter =/usr/include/slang
     CFLAGS += $(SLANG_INC)
+    CFLAGS += -DHAVE_SLANG_SUPPORT
     EXTLIBS += -lslang
   endif
 endif
-- 
1.8.3.1



More information about the linux-yocto mailing list