It needs to be compiled with -fPIC because it's linking a static lib with a
shared lib; otherwise we get:
/usr/lib64/gcc/x86_64-suse-linux/11/../../../../x86_64-suse-linux/bin/ld:
../../common/libKUserFeedbackCommon.a(surveytargetexpression.cpp.o): warning:
relocation against `_ZN7QString6_emptyE@@Qt_6' in read-only section `.text'
/usr/lib64/gcc/x86_64-suse-linux/11/../../../../x86_64-suse-linux/bin/ld:
../../common/libKUserFeedbackCommon.a(surveytargetexpressionevaluator.cpp.o):
relocation R_X86_64_PC32 against symbol `_ZN7QString6_emptyE@@Qt_6' can not be
used when making a shared object; recompile with -fPIC
Thanks to Fabian Vogt for figuring it out.
↧