Hey, I get the following compile errors when compiling anything that depends on libKF5XsltKde.a from kdoctools:
When compiling kio: [ 53%] Built target kio_file /home/krf/bin/ld: error: /home/krf/devel/install/kf5/lib/x86_64-linux- gnu/libKF5XsltKde.a(xslt.cpp.o): requires dynamic R_X86_64_PC32 reloc against '_ZN7QStringpLE5QChar' which may overflow at runtime; recompile with -fPIC /home/krf/bin/ld: error: /home/krf/devel/install/kf5/lib/x86_64-linux- gnu/libKF5XsltKde.a(xslt.cpp.o): requires dynamic R_X86_64_32 reloc which may overflow at runtime; recompile with -fPIC /home/krf/bin/ld: error: /home/krf/devel/install/kf5/lib/x86_64-linux- gnu/libKF5XsltKde.a(xslt.cpp.o): requires dynamic R_X86_64_PC32 reloc against '_ZN5QChar7unicodeEv' which may overflow at runtime; recompile with -fPIC Obviously, the reason is that -fPIC is missing for the static library target libKF5XsltKde.a. I thought that's added implicitly when doing target_link_libraries(KF5XsltKde Qt5::Core KF5::Archive)? That pulls in the link flags from Qt5Core, no? Ideas? Important note: My Qt5 here is configured with -no-reduce-relocations (that might be the issue?), adding -fPIC fixes the build for me. Greets -- Kevin Funk _______________________________________________ Kde-frameworks-devel mailing list Kde-frameworks-devel@kde.org https://mail.kde.org/mailman/listinfo/kde-frameworks-devel