With linux AMT SDK, there is a problem linking with static library libimrsdk*.a when creating a shared library (.so) that use the AMT SDK !!!
The linker provide the following error:
relocation R_X86_64_PC32 against symbol 'g_lock' can not be used when making a shared object. recompile with -fPIC.
NOTE: creating an executable goes fine, but shared library that use the static library cause the above link error...
As far as aI know, the solution for the problem can be recompilation with -fPIC flag,
1) can you please provide libimrsdk*.a static library compiled with -fPIC option ?
2) or provide the IMRSDK source code so i will do that myself ?
you have sent me a private mail/message with a respond to the above problem.
this is the message:
Greetings Ronnie S.,
Comment by JOSEPH O. (Intel):
Attached ia a static redirection library compiled on Fedora 22 x86. The library was built using g++ compiler (version 5.3.1) with the flags –fPIC and –fPIE. Note: This is NOT a validated copy
To compile it we used openSSL 1.0.1r and e2fsprogs-devel 1.42.13 so you might need to install them.
See the documentation of how to compile the library in Linux environment. I think that for shared library you will also need to use the –fPIC flag.
Please update me whether you encounter a problem or not, then we will look at doing the library for x64.
Thanks for the reply, but