Created attachment 517477 [details] [diff] [review] Proposed patch. According to the GNU Make documentation , make searches for -lfoo dependencies in VPATH. VPATH doesn't seem to be set to the Android library directory when doing Fennec builds, so it searches only /usr/lib/. This breaks my build because it's looking for /usr/lib/libz.so, but on Mac it's /usr/lib/libz.dylib. : http://www.gnu.org/software/automake/manual/make/Libraries_002fSearch.html
fwiw this patch worked for me as well.