musl-cross-make
musl-cross-make copied to clipboard
question about kernel version!
I build static PHP package with musl-cross-make.
If I build MUSL with kernel 4.19, will the binary work without problem on old kernel like 3.2?
The GLIBC has --enable=kernel= options, is MUSL need this ?
musl does not use kernel headers whatsoever, and they have no bearing on what kernels you can run with. Installation of kernel headers is only a convenience feature since lots of low-level software (including a large number of busybox applets) depends on them. Older kernel headers are not compatible with a time64 userspace, so support for them was dropped recently from mcm.
Thanks for the quick response.
On my test it work on old kernel, but I am not able to test them all and every corner case, so I confirm this here.
build with kernel 4.19.90, and it seems run well on 5.1.17 and 4.9.0.
Unless the software you're building with musl is using the kernel headers, you really don't need to test at all. They are not used (or even available) when compiling musl or the gcc target libs, and only installed as an optional component. You can even set LINUX_VER blank in your config.mak and not install them at all if you want to check this.