title: can not be used when making a shared object; recompile with -fPIC
body: <p>I tried to install a library but I have got the following error after running make. How to recompile with flag?</p>
  
  <blockquote>
    <p>make Scanning dependencies of target pwrutils Linking CXX shared
    library libpwrutils.so /usr/bin/ld:
    /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libboost_system.a(error_code.o):
    relocation R_X86_64_32 against `.rodata.str1.1' can not be used when
    making a shared object; recompile with -fPIC
    ,/usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libboost_system.a:
    error adding symbols: Bad value collect2: error: ld returned 1 exit
    status make[2]: <strong>* [libpwrutils/libpwrutils.so.1.0] Error 1 make[1]:
    *</strong> [libpwrutils/CMakeFiles/pwrutils.dir/all] Error 2 make: *** [all] Error 2</p>
  </blockquote>