title: Boost ld: final link failed: Bad value: relocation R_X86_64_PC32 against undefined hidden symbol
body: <p>I'm Trying to Link boost library with our code, I'm Getting the Following error</p>
  <p>ld: /boost/lib/laxno/libboost_thread.a(thread.o): relocation R_X86_64_PC32 against undefined hidden symbol `_ZTCN5boost10wrapexceptINS_21thread_resource_errorEEE0_NS_16exception_detail10clone_implINS3_19error_info_injectorIS1_EEEE' can not be used when making a shared object
  ld: final link failed: Bad value</p>
  <p>I have built the boost with the GCC 7.4.0 with the following command
  ./b2 cxxflags=&quot;-fPIC -std=c++14&quot; cflags=&quot;-fPIC&quot; -j4</p>
  <p>Getting the following error if I exclude the &quot;-fPIC&quot; flag while building the boost libs:</p>
  <p>/boost/lib/laxno/libboost_thread.a(thread.o): relocation R_X86_64_32 against `.text' can not be used when making a shared object; recompile with -fPIC
  /boost/lib/laxno/libboost_thread.a: could not read symbols: Bad value</p>