log4cxx recompile with -fPIC

  .so, c++, fpic, linker, log4cxx

I’m compiling a shared lib (.so) that use log4cxx library. I’m getting the following error:

liblog4cxx.a(level.o): relocation R_X86_64_32 against `.bss' can not be used when making a shared object; recompile with -fPIC

Have you any idea? should I recompile log4cxx with some special option?

Source: Windows Questions C++

LEAVE A COMMENT