-diff -crB zlib-1.2.5/Makefile zlib-1.2.5-bgp/Makefile
-*** zlib-1.2.5/Makefile	2010-07-23 23:09:05.460074523 +0300
---- zlib-1.2.5-bgp/Makefile	2010-07-23 23:07:10.089933409 +0300
+diff -crB zlib-1.2.5/Makefile zlib-1.2.5.bgp/Makefile
+*** zlib-1.2.5/Makefile	2010-07-24 13:40:31.072504615 +0300
+--- zlib-1.2.5.bgp/Makefile	2010-07-24 13:39:14.962416203 +0300
 ***************
 *** 24,33 ****
   #CFLAGS=-O3 -Wall -Wwrite-strings -Wpointer-arith -Wconversion \

  	mv _match.o match.lo
  	rm -f _match.s
  
***************
*** 137,143 ****
  	-@mv objs/$*.o $@
  
  $(SHAREDLIBV): $(PIC_OBJS)
! 	$(LDSHARED) $(SFLAGS) -o $@ $(PIC_OBJS) $(LDSHAREDLIBC) $(LDFLAGS)
  	rm -f $(SHAREDLIB) $(SHAREDLIBM)
  	ln -s $@ $(SHAREDLIB)
  	ln -s $@ $(SHAREDLIBM)
--- 137,143 ----
  	-@mv objs/$*.o $@
  
  $(SHAREDLIBV): $(PIC_OBJS)
! 	$(LDSHARED) $(SFLAGS) -qmkshrobj -qnostaticlink -o $@ $(PIC_OBJS) $(LDSHAREDLIBC) $(LDFLAGS)
  	rm -f $(SHAREDLIB) $(SHAREDLIBM)
  	ln -s $@ $(SHAREDLIB)
  	ln -s $@ $(SHAREDLIBM)
***************
*** 150,159 ****
  	$(CC) $(CFLAGS) -o $@ minigzip.o $(TEST_LDFLAGS)

! SFLAGS= -D_LARGEFILE64_SOURCE=1 -qpic
  LDFLAGS= -L. libz.a
  TEST_LDFLAGS=-L. libz.a
! LDSHARED=${CC} -qmkshrobj -qnostaticlink
  CPP=/bgsys/drivers/ppcfloor/comm/xl/bin/mpixlc_r -E
  
  STATICLIB=libz.a
