title: Cannot link a shared library for python
body: <p>I make a module for apache, and use gcc for compile:</p>
  
  <pre><code>gcc \
      $(apr-1-config --cflags) \
      $(apr-1-config --includes) \
      $(python3.6-config --cflags) \
      -fPIC -DSHARED_MODULE \
      -I/usr/include/httpd/ \
      -c mod_demo.c
  </code></pre>
  
  <p>But when I try to link the python libraries it does not work:</p>
  
  <pre><code>ld \
      $(apr-1-config --link-ld) \
      $(python3.6-config --ldflags) \
      -Bshareable \
      -o mod_demo.so \
      mod_demo.o
  </code></pre>
  
  <p>The output message is:</p>
  
  <pre><code>ld: -linker not found.
  </code></pre>
  
  <p>What is the problem?. The flags are:</p>
  
  <pre><code>[root@demo demo]# python3.6-config --ldflags
  -L/usr/lib64 -lpython3.6m -lpthread -ldl  -lutil -lm  -Xlinker -export-dynamic
  </code></pre>
  
  <p>If write the flags without -Xlinker, it works fine:</p>
  
  <pre><code> ld \
      $(apr-1-config --link-ld) \
      -L/usr/lib64 -lpython3.6m -lpthread -ldl  -lutil -lm  -export-dynamic \
      -Bshareable \
      -o mod_demo.so \
      mod_demo.o
  </code></pre>
  
  <p>How to use native flags from <code>python3.6-config</code>?, what is the problem for <code>-Xlinker</code>?</p>