I am using TBB under Linux and I just ran into the issue that libtbb.so.2 is not compiled using the -fPIC option -- or in otherwords, the libtbb.so.2 contains text relocations.
Text relocations are explained here:
You can verify that libtbb.so.2 contains text relocations via running this command line:
[root@mtl-siqa23]# eu-findtextrel libtbb.so.2
Text relocations can result in SELinux policy warnings or errors. It is best these days to use the -fPIC option to avoid having text relocations.
I am somewhat new to Linux development, so maybe someone has a workaround or is there something I am not understanding?
If I am understanding correctly, it would be great if libtbb.so.2 was recompiled such that there were no text relocations.
I am using the commercial version of TBB and thus I understand that I can't just take the source to the open source TBB version and recompile it myself using the -fPIC option for my commercial use. (Although if that was allowed, it would be really nice.)