[Lldb-commits] [lldb] r253152 - 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:56:21 PST 2015
Author: brucem
Date: Sat Nov 14 19:56:21 2015
New Revision: 253152
URL: http://llvm.org/viewvc/llvm-project?rev=253152&view=rev
Log:
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
Modified:
lldb/trunk/Makefile
lldb/trunk/lib/Makefile
lldb/trunk/scripts/Python/modules/readline/Makefile
Modified: lldb/trunk/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/Makefile?rev=253152&r1=253151&r2=253152&view=diff
==============================================================================
--- lldb/trunk/Makefile (original)
+++ lldb/trunk/Makefile Sat Nov 14 19:56:21 2015
@@ -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
Modified: lldb/trunk/lib/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/lib/Makefile?rev=253152&r1=253151&r2=253152&view=diff
==============================================================================
--- lldb/trunk/lib/Makefile (original)
+++ lldb/trunk/lib/Makefile Sat Nov 14 19:56:21 2015
@@ -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
Modified: lldb/trunk/scripts/Python/modules/readline/Makefile
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/scripts/Python/modules/readline/Makefile?rev=253152&r1=253151&r2=253152&view=diff
==============================================================================
--- lldb/trunk/scripts/Python/modules/readline/Makefile (original)
+++ lldb/trunk/scripts/Python/modules/readline/Makefile Sat Nov 14 19:56:21 2015
@@ -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 :=
More information about the lldb-commits
mailing list