Hi,
I have to add the -fPIC/-pie flags to our apps, but I have a linking problem. I'm looking for the answer, but I did not found it yet. It seems, that the CRT library is not compiled with the -fPIC?
Have you ever had problem like this? I am not sure how to fix it.
Best regards,
Patryk
I have to add the -fPIC/-pie flags to our apps, but I have a linking problem. I'm looking for the answer, but I did not found it yet. It seems, that the CRT library is not compiled with the -fPIC?
Code:
2016-08-03 083003 - /usr/bin/ld: /usr/lib/crtbeginT.o: relocation R_X86_64_32 against `__deregister_frame_info' can not be used when making a shared object; recompile with -fPIC
2016-08-03 083003 - /usr/lib/crtbeginT.o: could not read symbols: Bad value
2016-08-03 083003 - cc: error: linker command failed with exit code 1 (use -v to see invocation)
2016-08-03 083003 - *** Error code 1
Have you ever had problem like this? I am not sure how to fix it.
Best regards,
Patryk