From: Michael Wolf Date: Wed, 6 Jan 2010 03:00:59 +0000 (-0500) Subject: Figure out where Python dynamic libraries live. Use them, too. X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=02f8817ab20b1ab220bdeb1f48068e698922d02d;p=packages%2Fb%2Fbup.git Figure out where Python dynamic libraries live. Use them, too. --- diff --git a/Makefile b/Makefile index 64b1ecd..cc5a73b 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,5 @@ PYINCLUDE:=$(shell python2.5-config --includes) +PYLIB:=$(shell python2.5-config --lib) CFLAGS=-Wall -g -O2 -Werror $(PYINCLUDE) -g -fPIC default: all @@ -8,7 +9,7 @@ all: bup-split bup-join bup-save bup-init bup-server bup randomgen chashsplit.so randomgen: randomgen.o chashsplit.so: chashsplitmodule.o - $(CC) -shared -o $@ $< + $(CC) -shared -o $@ $< $(PYLIB) runtests: all ./wvtest.py $(wildcard t/t*.py)