When compiling with -DBUILD_SHARED_LIBS=OFF the glib backend will still build as a shared library. This is because add_library(poppler-glib SHARED ${poppler_glib_SRCS} ${poppler_glib_generated_SRCS}) is hardcoded and there is no corresponding line defining an associated static library. Adding a second, STATIC library and associated install() directive manually gives me a working static version of the glib interface. Removing SHARED doesn't suffice as dependencies aren't resolved correctly by parts of the CMakeLists that depend on the library. (Other interfaces might be affected as well, I haven't checked.)
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/poppler/poppler/issues/201.
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.