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.
OS:=$(shell uname | sed 's/[-_].*//')
-MACHINE:=$(shell uname -m)
CFLAGS=-Wall -g -O2 -Werror $(PYINCLUDE) -g
ifneq ($(OS),CYGWIN)
CFLAGS += -fPIC
SOEXT:=.so
ifeq (${OS},Darwin)
+ MACHINE:=$(shell arch)
CFLAGS += -arch $(MACHINE)
SHARED = -dynamiclib
endif