diff -NrU5 bdelta-0.1.0.original/Makefile bdelta-0.1.0/Makefile --- bdelta-0.1.0.original/Makefile 2009-07-11 10:50:13.000000000 -0600 +++ bdelta-0.1.0/Makefile 2009-07-11 11:01:30.000000000 -0600 @@ -4,16 +4,16 @@ LIBDIR=${PREFIX}/lib CXXFLAGS=-O2 all: bpatch libbdelta.so bdelta libbdelta.so: libbdelta.cpp container.h - ${CC} -shared -fPIC ${CXXFLAGS} $< -o $@ + ${CC} -shared -fPIC ${CXXFLAGS} ${LDFLAGS} $< -o $@ bdelta: bdelta.cpp container.h file.h - ${CC} $< -o $@ ${CXXFLAGS} -L. -lbdelta -lstdc++ + ${CC} $< -o $@ ${CXXFLAGS} ${LDFLAGS} -L. -lbdelta -lstdc++ bpatch: bpatch.cpp file.h % : %.cpp - ${CC} $< -o $@ ${CXXFLAGS} -lstdc++ + ${CC} $< -o $@ ${CXXFLAGS} ${LDFLAGS} -lstdc++ install: libbdelta.so bdelta bpatch mkdir -p $(DESTDIR)$(BINDIR) install -m 755 libbdelta.so $(DESTDIR)$(LIBDIR) install -m 755 bdelta $(DESTDIR)$(BINDIR) install -m 755 bpatch $(DESTDIR)$(BINDIR)