dslm4515 / CMLFS

Clang-Built Musl Linux From Scratch
MIT License
99 stars 18 forks source link

Portabilize `find` call at 1-kernel-headers #40

Closed takusuman closed 2 years ago

takusuman commented 2 years ago

Portabilize find call at 1-kernel-headers

Change -delete for -exec rm -vf {} \;

Removed unnecessary repetition when declaring *FLAGS at 3-GCC-static.

Just made CXXFLAGS point to/replicate directly CFLAGS instead of re-declarating its value. It's not a big deal, but this change avoid mistypings that could broke the configure stage.

Relativize CPU architecture and cross-compilation target at 4-musl

Just in case of someone trying to port CMLFS to other architectures and don't wanting to have troubles when configurating musl (/etc/ld-musl-$CMLFS_ARCH.path et cetera) for cgnutools.

^Propose an extra/alt directory for alternative to common/overused programs in the base system.

I ^propose sabotage's netbsd-curses as an experimental alternative to GNU ncurses.

It compiles faster on my laptop with the -j2 flag; it's small and suitable to embedded systems, like musl. :^)

Portabilize tar calls for sane implementations and made for loops for patching clang at 8-clang

I hope i didn't broke anything when doing the for's...

Remove unnecessary repetition when declaring *FLAGS at 8-clang.

takusuman commented 2 years ago

I intend to make more commits with fixes and contributions along the way of compiling everything, obviously; but since GCC takes a shitload of time to compile, i'll just let it compiling and take a rest.

takusuman commented 2 years ago

Eh, sorry, i meant "propose"... 🤦🏽‍♂️

dslm4515 commented 2 years ago

These are good changes!

I have plans to build on aarch64/arm64, so eventually x86_64 won't be hardcoded.

dslm4515 commented 2 years ago

I forgot about netbsd-curses. Definitely will try it with Optimux

takusuman commented 2 years ago

These are good changes!

I have plans to build on aarch64/arm64, so eventually x86_64 won't be hardcoded.

Thanks! :pray: I imagined that it would be ported to another non-x86 architectures (in case, aarch64/arm64), thats why i decided to do that change at 4-musl.