Re: Building ECL as a static library

Daniel KochmaƄski <[email protected]> Mon, 19 Jun 2023 08:17:01 +0000
Newsgroups gmane.lisp.ecl.general
Message-ID <XOa5fYNElBKdrw1-VpnFh1nB1g0LiklY_pK7e1GTwAi5aNIMiAilXf1UNbH2OeXfhzPWLELUca1pUmgSc7eYwFFt7bFkN8MPUpyoLPicdtA=@turtleware.eu>
Hello,

Thanks for raising this question. It is a feature that was requested a few =
times already. ECL works when cross-compiled, but you need to compile it ag=
ainst the target's libc.

Currently ECL always (even when statically linked) links dynamically agains=
t the target libc (if you've ever seen an error for executables that glibc =
is not compatible - that's this sort of issue).

In the future (but not in the imminent release) I want to add the possibili=
ty to link with libc statically (i.e musl), so the executable may be moved =
between machines with incompatible libc libraries.

Best regards,
Daniel

--
Daniel Kochma=C5=84ski ;; aka jackdaniel | Przemy=C5=9Bl, Poland
TurtleWare - Daniel Kochma=C5=84ski=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 | www.tur=
tleware.eu

"Be the change that you wish to see in the world." - Mahatma Gandhi