[Lldb-commits] [PATCH 3/3] python-config in Makefiles
Marco Minutoli
mminutoli at gmail.com
Thu May 19 14:41:32 PDT 2011
Replace python static settings of compiler flags with invocation of
python-config.
---
Makefile | 4 ++--
lib/Makefile | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
index fc090a8..bd22515 100644
--- a/Makefile
+++ b/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/lib/Makefile b/lib/Makefile
index 66efb32..8328863 100644
--- a/lib/Makefile
+++ b/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 \
--
1.7.3.4
More information about the lldb-commits
mailing list