summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-05-19 23:09:48 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-05-19 23:09:48 +0000
commitc569c1651d7694a72530bc26ca4e824838091c45 (patch)
tree691223fa2e714f52f15d15d545e9f00d8a08ad2d
parentc25433f3d218c502f0c24d346b51fb6ce0d3cc16 (diff)
downloadbcm5719-llvm-c569c1651d7694a72530bc26ca4e824838091c45.tar.gz
bcm5719-llvm-c569c1651d7694a72530bc26ca4e824838091c45.zip
python-config in Makefiles
Replace python static settings of compiler flags with invocation of python-config. Signed-off-by: Johnny Chen <johnny.chen@apple.com> llvm-svn: 131697
-rw-r--r--lldb/Makefile4
-rw-r--r--lldb/lib/Makefile2
2 files changed, 3 insertions, 3 deletions
diff --git a/lldb/Makefile b/lldb/Makefile
index fc090a8f18f..bd22515394f 100644
--- a/lldb/Makefile
+++ b/lldb/Makefile
@@ -29,14 +29,14 @@ LEVEL := $(LLDB_LEVEL)/../..
include $(LEVEL)/Makefile.common
# Set Python include directory
-PYTHON_INC_DIR = /usr/include/python2.7
+PYTHON_INC_DIR = $(shell python-config --includes)
# Set common LLDB build flags.
CPP.Flags += -I$(PROJ_SRC_DIR)/$(LLDB_LEVEL)/include
CPP.Flags += -I$(PROJ_OBJ_DIR)/$(LLDB_LEVEL)/include
CPP.Flags += -I$(PROJ_SRC_DIR)/$(LLDB_LEVEL)/../clang/include
CPP.Flags += -I$(PROJ_OBJ_DIR)/$(LLDB_LEVEL)/../clang/include
-CPP.Flags += -I$(PYTHON_INC_DIR)
+CPP.Flags += $(PYTHON_INC_DIR)
CPP.Flags += -I$(PROJ_SRC_DIR)/$(LLDB_LEVEL)/source
CPP.Flags += -I$(PROJ_SRC_DIR)/$(LLDB_LEVEL)/source/Utility
CPP.Flags += -I$(PROJ_SRC_DIR)/$(LLDB_LEVEL)/source/Plugins/Process/Utility
diff --git a/lldb/lib/Makefile b/lldb/lib/Makefile
index 66efb32033c..8328863167b 100644
--- a/lldb/lib/Makefile
+++ b/lldb/lib/Makefile
@@ -17,7 +17,7 @@ NO_BUILD_ARCHIVE = 1
LINK_LIBS_IN_SHARED = 1
SHARED_LIBRARY = 1
-PYTHON_BUILD_FLAGS = -lpython2.6
+PYTHON_BUILD_FLAGS = $(shell python-config --ldflags)
# Include all archives in liblldb.a files
USEDLIBS = lldbAPI.a \
OpenPOWER on IntegriCloud