From: Steve Diver Date: Fri, 12 Feb 2010 17:54:05 +0000 (-0500) Subject: Fix building under cygwin. X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=a3ab444dfab24403d0a8a201730359c60ffe63f8;p=packages%2Fb%2Fbup.git Fix building under cygwin. I attempted to build the latest under cygwin and ran into this: ... creating build/temp.cygwin-1.7.1-i686-2.5 gcc -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict- prototypes -I/usr/include/python2.5 -c _hashsplit.c -o b uild/temp.cygwin-1.7.1-i686-2.5/_hashsplit.o creating build/lib.cygwin-1.7.1-i686-2.5 gcc -shared -Wl,--enable-auto-image-base build/temp.cygwin-1.7.1- i686-2.5/_hashsplit.o -L/usr/lib/python2.5/config -lpyt hon2.5 -o build/lib.cygwin-1.7.1-i686-2.5/_hashsplit.dll cp build/*/_hashsplit..dll . cp: cannot stat uild/*/_hashsplit..dll': No such file or directory make: *** [_hashsplit.dll] Error 1 Some investigation turned up that Makefile was mistakenly referencing _hashsplit.so instead of _hashsplit.dll Changing the Makefile to expand the extension macro for the detected platform, now allows problem free building. --- diff --git a/Makefile b/Makefile index c5a16c5..ee3ff37 100644 --- a/Makefile +++ b/Makefile @@ -34,7 +34,7 @@ all: bup-split bup-join bup-save bup-init bup-server bup-index bup-tick \ _hashsplit$(SOEXT): _hashsplit.c csetup.py @rm -f $@ python csetup.py build - cp build/*/_hashsplit.so . + cp build/*/_hashsplit$(SOEXT) . runtests: all runtests-python runtests-cmdline