The following command line links libCrun statically because Crun is a default value for -library:
demo% CC -staticlib=Crun
However, the following command line does not link libgc because libgc is not linked unless explicitly specified with the -library option:
demo% CC -staticlib=gc
To link libgc statically, use the following command:
demo% CC -library=gc -staticlib=gc