[syslinux] Syslinux statically linked?
Erik Rull
erik.rull at rdsoftware.de
Wed Nov 2 13:33:20 PDT 2022
Hello Michael,
thanks - sometimes life is so simple - I just didn't consider this option.
Works as expected.
Best regards,
Erik
Michael Tokarev wrote:
> 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.
>
> /mjt
More information about the Syslinux
mailing list