title: Passing a gcc flag through makefile
body: <p>I am trying to build a pass using <a href="http://llvm.org/" rel="noreferrer">llvm</a> and I have finished building llvm and its associated components. However, when I run make after following all the steps to build a pass including the <a href="http://llvm.org/docs/WritingAnLLVMPass.html#makefile" rel="noreferrer">makefile</a>, I get the following </p>
  
  <blockquote>
    <p>relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC</p>
  </blockquote>
  
  <p>After tyring to find a fix by googling the error message, I came to know that this is not specific to llvm. A few solutions suggested that I should use "--enable-shared" while running configure but that didn't help my case. Now I want to re-build llvm using <code>fPIC</code>, as the error says. But how do I do this using the makefile?</p>