Skip to content

Fix build with library or binary resources

Julius Künzel requested to merge work/fPIC into master

With -DBINARY_ICONS_RESOURCE=ON and/or -DICONS_LIBRARY=ON the build fails with:

/usr/lib64/gcc/x86_64-suse-linux/12/../../../../x86_64-suse-linux/bin/ld: src/qrc_breeze-icons.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
/usr/lib64/gcc/x86_64-suse-linux/12/../../../../x86_64-suse-linux/bin/ld: failed to set dynamic section sizes: bad value

adding the -fPIC flag as the compiler suggests does fix it

Merge request reports

Loading