This patch add the "-linkall" flag when creating the ocamlcommon.cma
and ocamlcommon.cmxa archives.
Modules in "typing/" subdirectory rely on side-effects during
initialization to setup forward references. It would be unsafe for
a module to not be linked, thus it seems preferable to enforce linking
of all modules.
We re-discussed this patch recently: it's not terribly satisfying, but there is no clear better way to do, so it was decided to include it. In the future, it would be nice to have a way to record such forward-dependencies, that the linker could understand to fail if the forward-depended file is not passed.