diff options
Diffstat (limited to 'tools/perf/Makefile')
-rw-r--r-- | tools/perf/Makefile | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tools/perf/Makefile b/tools/perf/Makefile index 31a07f95fd98..5216ade909d0 100644 --- a/tools/perf/Makefile +++ b/tools/perf/Makefile | |||
@@ -743,11 +743,9 @@ ifeq ($(NO_PERF_REGS),0) | |||
743 | BASIC_CFLAGS += -DHAVE_PERF_REGS | 743 | BASIC_CFLAGS += -DHAVE_PERF_REGS |
744 | endif | 744 | endif |
745 | 745 | ||
746 | ifdef NO_STRLCPY | 746 | ifndef NO_STRLCPY |
747 | BASIC_CFLAGS += -DNO_STRLCPY | 747 | ifeq ($(call try-cc,$(SOURCE_STRLCPY),),y) |
748 | else | 748 | BASIC_CFLAGS += -DHAVE_STRLCPY |
749 | ifneq ($(call try-cc,$(SOURCE_STRLCPY),),y) | ||
750 | BASIC_CFLAGS += -DNO_STRLCPY | ||
751 | endif | 749 | endif |
752 | endif | 750 | endif |
753 | 751 | ||