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:
parent
eb0a6f4308
commit
60cd65aac2
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 :=
|
||||
|
|
Loading…
Reference in New Issue