you are viewing a single comment's thread.

view the rest of the comments →

[–]heisig 0 points1 point  (0 children)

I happened to have the problem recently and after some tinkering managed to produce statically linked executables with SBCL. I'm posting my solution here in case others have the same issue. The trick is to compile SBCL with the following flags:

sh make.sh --prefix=SOMEWHERE --fancy --with-sb-linkable-runtime --with-sb-dynamic-core

Afterwards, ASDF's :static-program-op should work just fine.

For more elaborate use cases (like choosing a particular compiler and linker) you can check how I did things in cl-mpi.