media-libs/libgphoto2-2.4.0-r1 dynamically links to libexif even with the exif USE flag disabled. At least version 2.3.1-r5 is also affected. Reproducible: Always Steps to Reproduce: 1. emerge media-libs/libexif 2. USE="-exif" emerge =media-libs/libgphoto2-2.4.0-r1 3. ldd /usr/lib/libgphoto2.so Actual Results: ldd returns: libexif.so.12 => /usr/lib/libexif.so.12 Expected Results: libgphoto2 should either depend on libexif or not link to it. Changing --without-exif to --without-libexif in the configure options fixes the problem.
Fixed. FTR, --without-libexif didn't work, I had to use --with-libexif=no