title: Compiling executable with "-fPIC" flag (no shared library)
body: <p>I am currently working on some legacy packages and I see that some <code>Makefile</code>s use the <code>-fPIC</code> flag to compile the final executable.</p>
  
  <p>My understanding is that this is used when creating a shared library and that it would make no sense to use it when creating an executable.</p>
  
  <p>I wonder if I am right or I am missing something, because when I search on the internet, I only get results talking about shared libraries and not executables.</p>
  
  <p>Thanks,</p>