Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@member.fsf.org>2009-06-01 14:56:28 (GMT)
committer Aleksey Lim <alsroot@member.fsf.org>2009-06-01 14:56:28 (GMT)
commit5dc051b2bda621a110102ace65270f7de1c1dc64 (patch)
tree601c8f9513f2214f1067315094199ddd02d08daa
parente68227f89dcd2cb07a9f4599352066908207411b (diff)
Link blobs with python libs
-rw-r--r--camerac/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/camerac/Makefile b/camerac/Makefile
index 12f6429..0fb6f76 100644
--- a/camerac/Makefile
+++ b/camerac/Makefile
@@ -1,5 +1,6 @@
PYVER=`python -c "import sys; print '%s.%s' % (sys.version_info[0], sys.version_info[1])"`
PYTHON=python$(PYVER)
+PYTHON_LIBS=`python-config --libs`
GLIB_INCLUDES=`pkg-config --cflags glib-2.0`
GLIB_LIBS=`pkg-config --libs glib-2.0`
@@ -19,7 +20,7 @@ PYCAIRO_LIBS=`pkg-config --libs pycairo`
INCLUDES=-I. -I/usr/include/${PYTHON} ${GLIB_INCLUDES} ${PYGTK_INCLUDES} ${CAIRO_INCLUDES} ${PYCAIRO_INCLUDES} ${GTK_INCLUDES}
OPTFLAGS=-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -fasynchronous-unwind-tables
CFLAGS=-g -fPIC -DPIC $(OPTFLAGS) $(INCLUDES)
-LDFLAGS=-shared -nostdlib -Wl,--export-dynamic -pthread ${GLIB_LIBS} ${PYGTK_LIBS} ${CAIRO_LIBS} ${PYCAIRO_LIBS} ${GTK_LIBS}
+LDFLAGS=-shared -nostdlib -Wl,--export-dynamic -pthread ${GLIB_LIBS} ${PYGTK_LIBS} ${CAIRO_LIBS} ${PYCAIRO_LIBS} ${GTK_LIBS} $(PYTHON_LIBS)
ARCH = $(shell arch | grep 64 >/dev/null && echo linux64 || echo linux32)
LIB_DIR = $(ARCH)_$(PYVER)