title: relocation R_X86_64_PC32 against symbol `_PyRuntime' can not be used when making a shared object; recompile with -fPIC
body: <p>Getting following link error while building a library in Python3.7 on 64bit machine.</p>
  <pre><code> /usr/bin/ld: /usr/local/lib/libpython3.7m.a(ceval.o): relocation R_X86_64_PC32 against symbol `_PyRuntime' can not be used when making a shared object; recompile with -fPIC
      /usr/bin/ld: final link failed: Bad value
      collect2: error: ld returned 1 exit status
  </code></pre>
  <p>On that same machine, if I install a miniconda <a href="https://docs.conda.io/en/latest/miniconda.html" rel="nofollow noreferrer">https://docs.conda.io/en/latest/miniconda.html</a> [Py 3.8 for 64bit], the library installs fine in that conda environment without any error.</p>
  <p>I tried buildingin Py3.7 by adding</p>
  <pre><code>export CFLAGS=&quot;$CFLAGS -fPIC&quot;
  </code></pre>
  <p>However, the error persists for python3.7</p>