Re:Kina Knowledge, using Common Lisp extensively in their do...
by svetlyak40wt on Saturday October 23, 2021 @09:31AM
(#28968219)
Yeah, you've got a dynamically linked binary.
There is a work in progress on SBCL to make it possible to create a really static binaries:
https://www.timmons.dev/posts/static-executables-with-sbcl-v...
I tried this fork and it worked for me!
Re:Kina Knowledge, using Common Lisp extensively in their do...
by p_l on Saturday October 23, 2021 @09:41AM
(#28968340)
Well, the example was on OSX, and it's generally not a good idea to do static linking there ;) (same on many other systems, you need minimally certain amount of dynamically linked stuff).
Blaze/Bazel rules for Lisp support building fully static SBCL binaries (except possibly for grabbing dynamic stuff that is forced by glibc). ECL also supports static linking.
I had a look at one of my SBCL-made binaries on MacOS, it shows this:
EDIT: GraalVM takes several minutes to generate binaries, and the binary may not behave the same as the JVM-based runtime, so I wouldn't recommend using that.[1] http://www.sbcl.org/manual/#Function-sb_002dext-save_002dlis...