aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/Makefile')
-rw-r--r--tools/perf/Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/perf/Makefile b/tools/perf/Makefile
index 690364577611..120736c03a59 100644
--- a/tools/perf/Makefile
+++ b/tools/perf/Makefile
@@ -542,7 +542,7 @@ PYTHON_EMBED_LDOPTS = `python-config --ldflags 2>/dev/null`
542PYTHON_EMBED_CCOPTS = `python-config --cflags 2>/dev/null` 542PYTHON_EMBED_CCOPTS = `python-config --cflags 2>/dev/null`
543endif 543endif
544 544
545ifneq ($(shell sh -c "(echo '\#include <Python.h>'; echo 'int main(void) { Py_Initialize(); return 0; }') | $(CC) -x c - $(PYTHON_EMBED_CCOPTS) -o /dev/null $(PYTHON_EMBED_LDOPTS) > /dev/null 2>&1 && echo y"), y) 545ifneq ($(shell sh -c "(echo '\#include <Python.h>'; echo 'int main(void) { Py_Initialize(); return 0; }') | $(CC) -x c - $(PYTHON_EMBED_CCOPTS) -o $(BITBUCKET) $(PYTHON_EMBED_LDOPTS) > /dev/null 2>&1 && echo y"), y)
546 BASIC_CFLAGS += -DNO_LIBPYTHON 546 BASIC_CFLAGS += -DNO_LIBPYTHON
547else 547else
548 ALL_LDFLAGS += $(PYTHON_EMBED_LDOPTS) 548 ALL_LDFLAGS += $(PYTHON_EMBED_LDOPTS)