[Lldb-commits] [PATCH] D14528: Allow to override python-config executable name from command line

Bruce Mitchener via lldb-commits lldb-commits at lists.llvm.org
Sat Nov 14 17:59:06 PST 2015


This revision was automatically updated to reflect the committed changes.
Closed by commit rL253152: Allow to override python-config executable name from command line (authored by brucem).

Changed prior to commit:
  http://reviews.llvm.org/D14528?vs=39786&id=40221#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D14528

Files:
  lldb/trunk/Makefile
  lldb/trunk/lib/Makefile
  lldb/trunk/scripts/Python/modules/readline/Makefile

Index: lldb/trunk/Makefile
===================================================================
--- lldb/trunk/Makefile
+++ lldb/trunk/Makefile
@@ -46,7 +46,8 @@
 
 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
 
Index: lldb/trunk/lib/Makefile
===================================================================
--- lldb/trunk/lib/Makefile
+++ lldb/trunk/lib/Makefile
@@ -18,7 +18,8 @@
 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
Index: lldb/trunk/scripts/Python/modules/readline/Makefile
===================================================================
--- lldb/trunk/scripts/Python/modules/readline/Makefile
+++ lldb/trunk/scripts/Python/modules/readline/Makefile
@@ -20,7 +20,8 @@
 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 :=


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14528.40221.patch
Type: text/x-patch
Size: 1376 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20151115/826cccac/attachment.bin>


More information about the lldb-commits mailing list