16 lines
716 B
Diff
16 lines
716 B
Diff
--- tools/perf/Makefile.config.orig
|
|
+++ tools/perf/Makefile.config
|
|
@@ -225,10 +225,10 @@
|
|
PYTHON_CONFIG_SQ := $(call shell-sq,$(PYTHON_CONFIG))
|
|
|
|
ifdef PYTHON_CONFIG
|
|
- PYTHON_EMBED_LDOPTS := $(shell $(PYTHON_CONFIG_SQ) --ldflags 2>/dev/null)
|
|
+ PYTHON_EMBED_LDOPTS := $(shell $(PYTHON_CONFIG_SQ) --embed --ldflags 2>/dev/null)
|
|
PYTHON_EMBED_LDFLAGS := $(call strip-libs,$(PYTHON_EMBED_LDOPTS))
|
|
PYTHON_EMBED_LIBADD := $(call grep-libs,$(PYTHON_EMBED_LDOPTS)) -lutil
|
|
- PYTHON_EMBED_CCOPTS := $(shell $(PYTHON_CONFIG_SQ) --includes 2>/dev/null)
|
|
+ PYTHON_EMBED_CCOPTS := $(shell $(PYTHON_CONFIG_SQ) --embed --includes 2>/dev/null)
|
|
FLAGS_PYTHON_EMBED := $(PYTHON_EMBED_CCOPTS) $(PYTHON_EMBED_LDOPTS)
|
|
endif
|
|
|