Lucian Cristian added the comment:
it seems that python-config --libs doesn't detect -lz and appending -lz fixes
the problem
-PYTHON_LIBS="`\"${PYTHONCONFIG}\" --libs`"
+PYTHON_LIBS="`\"${PYTHONCONFIG}\" --libs` -lz"
--
_
New submission from Lucian Cristian :
trying to compile a utility in Openwrt and when pip-install is selected and
zlib is linked to python I get this:
staging_dir/hostpkg/lib/libpython2.7.a(zlibmodule.o): In function
`PyZlib_crc32':
build_dir/hostpkg/Python-2.7.14/./Modules/zlibmodule.c