Hi,
I am trying to build a pass using llvm and I have finished building llvm and its associated components. However, when I run make after following all the steps to build a pass including the makefile, I get the following error:
*relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC*
After tyring to find a fix by googling the error message, I came to know that this is not specific to llvm. A few solutions suggested that I should use "--enable-shared" while running configure but that didn't help my case. Now I want to re-build llvm using fPIC
, as the error says. But how do I do this using the makefile?