OS:Fedora 17 tree/branch: poky/master commit 381c4b69c7e8b452f4d3de2f8214e6e5f6a9abe7 *problem Compile mkelfimage-native failed if host does not install libz. >>log<< ... fatal error: zlib.h: No such file or directory /usr/bin/ld: cannot find -lz ... *analysis If the host does not install libz, bitbake mkelfimage works well but mkelfimage-native failed, because mkelfimage-native find libz from host dir, not from the staging directories. *solution 1.Config LDFLAGS and LDFALGS_class-native in bb file to let mkelfimage and mkelfimage-native find libz and zlib.h from the staging directories. 2.Modify confiugre.ac to let makefile find libz and zlib.h by CFLAGS and LDFLAGS. Because the original Makefile don't make use of them.
Merged into master: http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=b70784ce581de8c0bf38227106e7313bb485c3d3
verified on git commit 66f4c8a674d9f8db958b13866af4d63ab8cbcd44