]> git.michaelhowe.org Git - packages/b/bup.git/commitdiff
Fix building under cygwin.
authorSteve Diver <squelch2@googlemail.com>
Fri, 12 Feb 2010 17:54:05 +0000 (12:54 -0500)
committerAvery Pennarun <apenwarr@gmail.com>
Fri, 12 Feb 2010 17:55:44 +0000 (12:55 -0500)
I attempted to build the latest under cygwin and ran into this:

<snip>
...
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 \ 2uild/*/_hashsplit..dll': No such file or directory
make: *** [_hashsplit.dll] Error 1

</snip>

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.

Makefile

index c5a16c59ef4e4558661fd67af5b9a4208d715ff7..ee3ff3737fc5fb9beaa883349bc3f3fb55a1a03a 100644 (file)
--- 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