Patch by Yuli Barcohen, 14 Aug 2003:
add support for bzip2 uncompression
diff --git a/examples/Makefile b/examples/Makefile
index 7975df5..febc501 100644
--- a/examples/Makefile
+++ b/examples/Makefile
@@ -79,6 +79,8 @@
 LIBCOBJS= stubs.o
 LIBOBJS	= $(LIBAOBJS) $(LIBCOBJS)
 
+gcclibdir := $(shell dirname `$(CC) -print-libgcc-file-name`)
+
 CPPFLAGS += -I..
 
 all:	.depend $(LIB) $(SREC) $(BIN)
@@ -88,7 +90,8 @@
 	$(AR) crv $@ $(LIBOBJS)
 
 %.srec:	%.o $(LIB)
-	$(LD) -g -Ttext $(LOAD_ADDR) -o $(<:.o=) -e $(<:.o=) $< $(LIB)
+	$(LD) -g -Ttext $(LOAD_ADDR) -o $(<:.o=) -e $(<:.o=) $< $(LIB) \
+		-L$(gcclibdir) -lgcc
 	$(OBJCOPY) -O srec $(<:.o=) $@
 
 %.bin:	%.srec