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
This commit is contained in:
Bruce Mitchener 2015-11-15 01:56:21 +00:00
parent eb0a6f4308
commit 60cd65aac2
3 changed files with 6 additions and 3 deletions

View File

@ -46,7 +46,8 @@ endif
ifeq (,$(findstring -DLLDB_DISABLE_PYTHON,$(CXXFLAGS)))
# Set Python include directory
PYTHON_INC_DIR = $(shell python-config --includes)
PYTHON_CONFIG?= python-config
PYTHON_INC_DIR = $(shell $(PYTHON_CONFIG) --includes)
CPP.Flags += $(PYTHON_INC_DIR)
endif

View File

@ -18,7 +18,8 @@ LINK_LIBS_IN_SHARED = 1
SHARED_LIBRARY = 1
ifeq (,$(findstring -DLLDB_DISABLE_PYTHON,$(CXXFLAGS)))
PYTHON_BUILD_FLAGS = $(shell python-config --ldflags)
PYTHON_CONFIG?= python-config
PYTHON_BUILD_FLAGS = $(shell $(PYTHON_CONFIG) --ldflags)
endif
# Include all archives in liblldb.so file

View File

@ -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 :=