Closed bensuperpc closed 3 years ago
Update: i install coreutils package in alpine linux and it working now.
could you please leave this open, you're not the only one using non-gnu coreutils.
This should be fixed now. I made some improvements to better support musl, and also started testing myself on alpine using docker. Thanks for reporting!
unfortunately your ldd
approach on the host doesn't quite work - see my commit comment - and is additionally incompatible with cross-compilation.
my article here https://sabotage-linux.neocities.org/blog/5/ describes various cross-compile safe approaches, imo the best here would be to run $(CC) -dumpmachine
and parse the resulting string.
$ gcc -dumpmachine
x86_64-unknown-linux-musl
$ musl-cross-make-6.5.0/x86_64-linux-musl/bin/x86_64-linux-musl-gcc -dumpmachine
x86_64-linux-musl
Thanks for the instructive feedback @rofl0r. It seems to me a configure script is unavoidable, so I have added a simple version of that. Hopefully it should be more correct wrt cross compilation, and easier to properly support more targets and options in the future.
I have a problem is trying to install the compiler, I have this error:
I am under alpine linux, in docker, on linux/amd64. If you want to see project : https://github.com/bensuperpc/docker-lacc