Skip to content
Commit bf0bb880 authored by Julius Künzel's avatar Julius Künzel 💬
Browse files

Fix build with library or binary resources

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 CMAKE_POSITION_INDEPENDENT_CODE=ON as the compiler suggests (equivalent to -fPIC) does fix it
parent aee84879
Pipeline #508485 passed with stage
in 5 minutes and 37 seconds
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment