]> arthur.barton.de Git - bup.git/commitdiff
Figure out where Python dynamic libraries live. Use them, too.
authorMichael Wolf <maw@pobox.com>
Wed, 6 Jan 2010 03:00:59 +0000 (22:00 -0500)
committerMichael Wolf <maw@pobox.com>
Wed, 6 Jan 2010 03:03:11 +0000 (22:03 -0500)
Makefile

index 64b1ecd569e190218d36f3336b2c83dafe255f8e..cc5a73b5316955739559ade65aa194db72d04381 100644 (file)
--- 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)