diff options
-rw-r--r-- | tools/perf/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/perf/Makefile b/tools/perf/Makefile index b28bb7359b14..0797786aa72a 100644 --- a/tools/perf/Makefile +++ b/tools/perf/Makefile | |||
@@ -592,6 +592,9 @@ endif | |||
592 | 592 | ||
593 | ifdef NO_DEMANGLE | 593 | ifdef NO_DEMANGLE |
594 | BASIC_CFLAGS += -DNO_DEMANGLE | 594 | BASIC_CFLAGS += -DNO_DEMANGLE |
595 | else ifdef HAVE_CPLUS_DEMANGLE | ||
596 | EXTLIBS += -liberty | ||
597 | BASIC_CFLAGS += -DHAVE_CPLUS_DEMANGLE | ||
595 | else | 598 | else |
596 | has_bfd := $(shell sh -c "(echo '\#include <bfd.h>'; echo 'int main(void) { bfd_demangle(0, 0, 0); return 0; }') | $(CC) -x c - $(ALL_CFLAGS) -o $(BITBUCKET) $(ALL_LDFLAGS) $(EXTLIBS) -lbfd "$(QUIET_STDERR)" && echo y") | 599 | has_bfd := $(shell sh -c "(echo '\#include <bfd.h>'; echo 'int main(void) { bfd_demangle(0, 0, 0); return 0; }') | $(CC) -x c - $(ALL_CFLAGS) -o $(BITBUCKET) $(ALL_LDFLAGS) $(EXTLIBS) -lbfd "$(QUIET_STDERR)" && echo y") |
597 | 600 | ||