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

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
***************
*** 24,33 ****
  #CFLAGS=-O3 -Wall -Wwrite-strings -Wpointer-arith -Wconversion \

  	mv _match.o match.lo
  	rm -f _match.s
  
***************
*** 150,159 ****
  	$(CC) $(CFLAGS) -o $@ minigzip.o $(TEST_LDFLAGS)
