summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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