[syslinux] Syslinux statically linked?

Michael Tokarev mjt at tls.msk.ru
Tue Nov 1 08:26:52 PDT 2022

31.10.2022 23:12, Erik Rull via Syslinux wrote:
> Hi all,
> is there a preset target somewhere or easy to activate to get a statically
> linked syslinux executable on linux?

If by syslinux you mean bios/extlinux/extlinux executable, you can build it
the same way it is built normally, by using, eg, CC="gcc -static" option to
makefile. Eg,

  make bios CC='gcc -static'

If you want to do that after successful run of regular build, remove the above
mentioned binary and re-run make.

The same is true for bios/linux/syslinux, but this one is not used that often.

This is a general compiler question. And for syslinux, which does not use any
other external libraries besides regular libc, it is easy.


More information about the Syslinux mailing list