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

Kamil Rytarowski via lldb-commits lldb-commits at lists.llvm.org
Mon Nov 9 23:30:55 PST 2015


krytarowski created this revision.
krytarowski added subscribers: joerg, lldb-commits, brucem.
krytarowski set the repository for this revision to rL LLVM.

pkgsrc (on NetBSD) ships with python2.7-config.

Repository:
  rL LLVM

http://reviews.llvm.org/D14528

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

Index: scripts/Python/modules/readline/Makefile
===================================================================
--- scripts/Python/modules/readline/Makefile
+++ 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 :=
Index: lib/Makefile
===================================================================
--- lib/Makefile
+++ 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: Makefile
===================================================================
--- Makefile
+++ 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
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D14528.39786.patch
Type: text/x-patch
Size: 1277 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20151110/a5ded503/attachment.bin>


More information about the lldb-commits mailing list