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