We have a huge Cython project that produces lots of dynamic .so libraries when compiled. We would prefer to have a single static .a library instead that could be linked into standalone executable. However I have no clue how to reach the gcc command line options when running cythonize module. I have looked into compilation options here, but any support of gcc tweaking seems completely missing, even if the command line itself is even printed to console during the build.
One of the works around coming to my head is to write a wrapper around gcc command in something like bash, and pretend it to be "gcc" on the command line. It could intercept all calls and drive the gcc own way.
But even if Cython would pick such a bait, looks like rather dirty work around. All I want is a single large .so or .a library rather than many. How could I achieve this?