]> Projects (at) Tadryanom (dot) Me - AdrOS.git/commit
fix: newlib crt0.o build error and gcc-full c++tools install failure
authorTulio A M Mendes <[email protected]>
Sat, 14 Mar 2026 03:26:36 +0000 (00:26 -0300)
committerTulio A M Mendes <[email protected]>
Sat, 14 Mar 2026 03:26:36 +0000 (00:26 -0300)
commit5d3b4f28d24a317bdba7d425e7dfbb44805abe1b
treefb5294a76ff2ab0efbfdd1f31ba393f60ed10953
parentc2b6f42c238c3542476d90482cac09546cb00a7d
fix: newlib crt0.o build error and gcc-full c++tools install failure

Two fixes to toolchain/build.sh:

1. Newlib: added have_crt0="no" to the adros entry in configure.host.
   Newlib's build system expected crt0.o from libc/sys/adros/, but our
   crt0 is provided by libgloss/adros. Setting have_crt0=no tells newlib
   to skip the crt0.o copy. Also replaced the old Makefile.am/configure.in
   (recursive autotools, wrong for newlib 4.4.0) with a minimal Makefile.inc
   (non-recursive build system).

2. GCC full rebuild: use explicit targets (all-gcc all-target-libgcc,
   install-gcc install-target-libgcc) instead of bare 'make install'.
   The bare install fails on c++tools/g++-mapper-server which is not
   needed for cross-compilation and doesn't build for freestanding
   targets.

Verified:
- i686-adros-gcc 13.2.0 and i686-adros-g++ 13.2.0 both work
- C and C++ cross-compilation succeeds
- newlib libc.a and libm.a installed
- 100/100 smoke tests pass (10 sec)
toolchain/build.sh