Yurttas/PL/SL/python/docs/core-python-programming/doc/152/ext/custom-interps.html
2.1 Building Custom Interpreters
The make file built by Makefile.pre.in can be run with the "static" target to build an interpreter:
make static
Any modules defined in the Setup file before the "*shared*" line will be statically linked into the interpreter. Typically, a "*shared*" line is omitted from the Setup file when a custom interpreter is desired.
Send comments on this document to python-docs@python.org.