Currently the poppler extension links to both libpoppler-glib (which is what the extension wraps) and the private libpoppler library.
The linking to libpoppler seems to come from the poppler-cairo pkg-config search in poppler/ext/poppler/extconf.rb; poppler-cairo does not represent "glib is compiled with cairo" (which is already expressed in the pkg-config file for poppler-glib, and by the POPPLER_HAS_CAIRO #define set in that case), but it's more really something related to the private libpoppler library.
It seems that removing the line
from poppler/ext/poppler/extconf.rb does not cause any build failure (although I couldn't run the test suite) but only no libpoppler.so in the NEEDED dependencies of poppler.so (diff the output of `readelf -d poppler.so | grep NEEDED` before and after the above change).
Log in to post a comment.