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>
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@131697 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Makefile b/lib/Makefile
index 66efb32..8328863 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -17,7 +17,7 @@
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 \