title: SCons to make a shared library (.so) with a static library (.a)
body: <p>I'm trying to get SCons to make a shared library. One of the items going into the <code>.so</code> is a <code>.a</code> static lib.</p>
  
  <p>I have a line like:</p>
  
  <pre><code>env_2.SharedLibrary('libstuff.so', \
    Split("""stuff.cxx mylib/libMine.a""")
  </code></pre>
  
  <p>And upon running it, I get this error:</p>
  
  <pre><code>scons: *** Source file: mylib/libMine.a \
  is static and is not compatible with shared target: libstuff.so
  </code></pre>
  
  <p>However, I know that a shared library can be made from the <code>.a</code> via a command like:</p>
  
  <pre><code>g++ -m32 -shared -o libstuff.so stuff.o mylib/libMine.a
  </code></pre>
  
  <p>Any ideas on getting this to work or any workarounds would be greatly appreciated.</p>
  
  <hr>
  
  <p>Related question: How do I get scons to put an additional string <code>-shared</code> on the LINK command line for the <code>Program()</code> call? If I could do this, I think it would meet my needs.</p>