summaryrefslogtreecommitdiffstats
path: root/lldb/scripts/Python/modules
diff options
context:
space:
mode:
authorBruce Mitchener <bruce.mitchener@gmail.com>2015-11-15 01:56:21 +0000
committerBruce Mitchener <bruce.mitchener@gmail.com>2015-11-15 01:56:21 +0000
commit60cd65aac249da6456565870f6d46089ee5ac4d6 (patch)
treeb8b421ee5d46b71da3274d2dacf19badbab0296f /lldb/scripts/Python/modules
parenteb0a6f43080f988099ff05053ea085a69ce9bad4 (diff)
downloadbcm5719-llvm-60cd65aac249da6456565870f6d46089ee5ac4d6.tar.gz
bcm5719-llvm-60cd65aac249da6456565870f6d46089ee5ac4d6.zip
Allow to override python-config executable name from command line
Summary: pkgsrc (on NetBSD) ships with python2.7-config. Patch by Kamil Rytarowski. Thanks! Reviewers: emaste, clayborg Subscribers: brucem, lldb-commits, joerg Differential Revision: http://reviews.llvm.org/D14528 llvm-svn: 253152
Diffstat (limited to 'lldb/scripts/Python/modules')
-rw-r--r--lldb/scripts/Python/modules/readline/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/scripts/Python/modules/readline/Makefile b/lldb/scripts/Python/modules/readline/Makefile
index 9ccd75dc1a8..dc0d757bc17 100644
--- a/lldb/scripts/Python/modules/readline/Makefile
+++ b/lldb/scripts/Python/modules/readline/Makefile
@@ -20,7 +20,8 @@ LINK_LIBS_IN_SHARED = 1
SHARED_LIBRARY = 1
LOADABLE_MODULE = 1
-PYTHON_INC_DIR = $(shell python-config --includes)
+PYTHON_CONFIG?= python-config
+PYTHON_INC_DIR = $(shell $(PYTHON_CONFIG) --includes)
# Include all archives in the shared lib
USEDLIBS :=
OpenPOWER on IntegriCloud