Mandriva and MySQL -lz error

Hi,

I'm trying to compile a simple myslq program in C the makefile I'm using is

Code:
CFG=/usr/bin/mysql_config

test: test.c
	sh -c "gcc -o test `$(CFG) --cflags` test.cpp `$(CFG) --libs`"
and I'm getting an error /usr/bin/ld: cannot find -lz...does anyone know
how to fix this...thanks Gerard4143

Note: I do have a file libz.so.1.2.3 and a link libz.so.1 in my lib folder