My system is OS X El Capitan (10.11.5). I'm using an installation built with a successful bootstrap from bug 564814. Emerging media-libs/opencv-3.1.0-r1 fails on line 446: ld: library not found for -lzlib It has the same problem with tiff etc. I've attached a patch, though I suspect the correct fix is at a higher level. It also has trouble finding the openexr includes and libs, which this doesn't fix. Reproducible: Always
Created attachment 435704 [details] build.log
Created attachment 435706 [details, diff] ebuild patch
Created attachment 435708 [details, diff] cmake patch
The ebuild patch also includes a fix from bug 423679, where the install fails with QA Notices.
Created attachment 440110 [details] ebuild patch
Created attachment 440112 [details, diff] cmake patch
I added this patch to the r6 update. This should be fixed now. Thanks for reporting this.