mirror of
https://github.com/intel/llvm.git
synced 2026-01-17 06:40:01 +08:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 \
|
||||
|
||||
Reference in New Issue
Block a user