title: installation & compilation boost on Manjaro
body: <p>I installed boost using <code>pacman -S boost boost-libs</code>.
  When I try to compile a program that uses <code>boost::thread</code>, and I got the following error:</p>
  <pre><code>/usr/bin/ld: /tmp/cc3AkelG.o: warning: relocation against `_ZTVN5boost6detail16thread_data_baseE' in read-only section `.text._ZN5boost6detail16thread_data_baseC2Ev[_ZN5boost6detail16thread_data_baseC5Ev]'
  /usr/bin/ld: warning: creating DT_TEXTREL in a PIE
  collect2: error: ld returned 1 exit status
  </code></pre>
  <p>Why does this happen and how can I fix it?</p>