I'm on a system which doesn't support shared libraries so everything it linked statically, but poppler fails to build as it doesn't pick up the static library dependency of libfontconfig which relies on libxml2.a and libiconv.a. As shown here.... Scanning dependencies of target poppler [ 71%] Built target poppler Scanning dependencies of target pdfdetach Linking CXX executable pdfdetach /usr/lib/libfontconfig.a(fcxml.o):fcxml.o:(.text+0x1ca): undefined reference to `_XML_GetCurrentLineNumber' /usr/lib/libfontconfig.a(fcxml.o):fcxml.o:(.text+0x22c): undefined reference to `_XML_GetCurrentLineNumber' /usr/lib/libfontconfig.a(fcxml.o):fcxml.o:(.text+0x14c4): undefined reference to `_XML_ParserCreate' /usr/lib/libfontconfig.a(fcxml.o):fcxml.o:(.text+0x1508): undefined reference to `_XML_SetUserData' /usr/lib/libfontconfig.a(fcxml.o):fcxml.o:(.text+0x1518): undefined reference to `_XML_SetDoctypeDeclHandler' /usr/lib/libfontconfig.a(fcxml.o):fcxml.o:(.text+0x1528): undefined reference to `_XML_SetElementHandler' /usr/lib/libfontconfig.a(fcxml.o):fcxml.o:(.text+0x153a): undefined reference to `_XML_SetCharacterDataHandler' /usr/lib/libfontconfig.a(fcxml.o):fcxml.o:(.text+0x1542): undefined reference to `_XML_GetBuffer' /usr/lib/libfontconfig.a(fcxml.o):fcxml.o:(.text+0x154e): undefined reference to `_XML_ParseBuffer' /usr/lib/libfontconfig.a(fcxml.o):fcxml.o:(.text+0x15b2): undefined reference to `_XML_ParserFree' /usr/lib/libfontconfig.a(fcxml.o):fcxml.o:(.text+0x185e): undefined reference to `_XML_GetErrorCode' /usr/lib/libfontconfig.a(fcxml.o):fcxml.o:(.text+0x1866): undefined reference to `_XML_ErrorString' /usr/lib/libfontconfig.a(fcfreetype.o):fcfreetype.o:(.text+0x20c4): undefined reference to `_libiconv_open' /usr/lib/libfontconfig.a(fcfreetype.o):fcfreetype.o:(.text+0x21d4): undefined reference to `_libiconv' /usr/lib/libfontconfig.a(fcfreetype.o):fcfreetype.o:(.text+0x22fa): undefined reference to `_libiconv_close' /usr/lib/libfontconfig.a(fcfreetype.o):fcfreetype.o:(.text+0x29bc): undefined reference to `_libiconv_close' /usr/lib/libfontconfig.a(fcfreetype.o):fcfreetype.o:(.text+0x2c12): undefined reference to `_libiconv_close' collect2: ld returned 1 exit status make[2]: *** [utils/pdfdetach] Error 1 make[1]: *** [utils/CMakeFiles/pdfdetach.dir/all] Error 2 make: *** [all] Error 2 I can test a patch if anyone can direct me on the correct way to patch the CMake build system. Thanks!
Honestly if your system is the one that has weird restrictions it should be you providing the patches, we can add them upstream if they don't interfere with the normal usage, but supporting static-libraries only is not something that i see us doing.
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.