cannot find -lz
does anybody knows what this is for?
This error is generated when doing:
root# gcc -shared -nostartfiles -o nsxml.so ns_xml.o -L/usr/lib -lxml2 -lz -lm
/usr/bin/ld: cannot find -lz
collect2: ld returned 1 exit status
make: ** [nsxml.so] Error 1
however, if I remove the -lz option it compile perfectly. I am afraid it this will affect. I'm sure it will but.. how bad?. I want to do it the proper way. Please help.