]> arthur.barton.de Git - bup.git/commit
Fix building on MacOS X on PowerPC.
authorAndrew Schleifer <me@andrewschleifer.name>
Wed, 10 Feb 2010 20:40:46 +0000 (15:40 -0500)
committerAvery Pennarun <apenwarr@gmail.com>
Wed, 10 Feb 2010 20:40:46 +0000 (15:40 -0500)
commit4ff5076a5b2ea1587a18780cb815005b34cbf3bd
treed1164f9b95103936bdfd80c8bced806f8dc2d183
parentab6dfa597c32a0a9e8424da7350303eebb36dd7b
Fix building on MacOS X on PowerPC.

bup failed to build on one of my machines, an older iMac; make
died ~40 lines in with "gcc-4.0: Invalid arch name : Power".

On PPC machines, uname -m returns the helpfully descriptive
"Power Macintosh", which gcc doesn't recognize. Some googling
revealed e.g.
http://www.opensource.apple.com/source/ld64/ld64-95.2.12/unit-tests/include/common.makefile
where they use $(shell arch) to get the necessary info.

With that little change, bup built on ppc and i386 machines for
me, and passed all tests.
Makefile