MichielDerhaeg / build-linux

A short tutorial about building Linux based operating systems.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

build busybox with -static flag

husio opened this issue · comments

I had issues running busybox as the first process. Due to a cryptic (to me) kernel error, it took me a while to realize that busybox was compiled dynamically.
Adding CONFIG_EXTRA_CFLAGS="-static" to the busybox .config builds a static binary and allows the kernel to run it.

Great. Thanks for your suggestion