title: linking error with cmake - fPIC
body: <p>I am having the following while making from source that also uses some static library during compilation. Here is the error:</p>
  
  <pre><code>/usr/bin/x86_64-linux-gnu-ld:/home/sajjad/Documents/Course/graphics/cmu/assignments/asst1_drawsvg/lib/libCMU462.a(base64.cpp.o): relocation R_X86_64_32S against symbol`_ZNSs4_Rep20_S_empty_rep_storageE@@GLIBCXX_3.4' can not be used when making a PIE object; recompile with -fPIC
  </code></pre>
  
  <p>It has already been discussed here before, it says that I am trying to  - "Linking dynamically against static archives". And it asking to compile with -fPIC while creating the archives. But I got the source with already generated .a (archive) file.</p>
  
  <p>What flag do I have to pass inside cmake to build against a static library.</p>