title: How can I set ccshared=-fPIC while executing ./configure?
body: <p>I am trying to build Python 2.6 for <a href="http://en.wikipedia.org/wiki/Quantum_GIS" rel="noreferrer">QGIS</a> on <a href="http://en.wikipedia.org/wiki/Red_Hat_Enterprise_Linux" rel="noreferrer">RHEL</a> 5.
  During the making of QGIS I get the following error:</p>
  
  <pre><code>Linking CXX shared library libqgispython.so
  /usr/bin/ld: /usr/local/lib/python2.6/config/libpython2.6.a(abstract.o): relocation R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC
  /usr/local/lib/python2.6/config/libpython2.6.a: could not read symbols: Bad value
  collect2: ld returned 1 exit status
  make[2]: *** [src/python/libqgispython.so.1.0] Error 1
  make[1]: *** [src/python/CMakeFiles/qgispython.dir/all] Error 2
  make: *** [all] Error 2
  </code></pre>
  
  <p>What I figure out from this error is that I need to build Python 2.6 with some flag, <code>-fPIC</code>.
  OK, so I found it in the <code>configure.in</code> file but it checks several conditions and on the basis of those conditions it assigns <code>-fPIC</code> to the <code>CCSHARED</code> flag.</p>
  
  <p>What I did was that after all conditions were checked I added the following line to deliberately use <code>CCSHARED</code> as <code>-fPIC</code>.</p>
  
  <pre><code>CCSHARED="-fPIC";
  </code></pre>
  
  <p>But it did not work..</p>
  
  <p>How to specify while configuring that I want to set <code>CCSHARED</code> as <code>-fPIC</code>?</p>