]> Projects (at) Tadryanom (dot) Me - AdrOS.git/commit
fix: build system cleanup — replace non-freestanding <string.h> with utils.h, paramet...
authorTulio A M Mendes <[email protected]>
Fri, 13 Mar 2026 23:45:00 +0000 (20:45 -0300)
committerTulio A M Mendes <[email protected]>
Fri, 13 Mar 2026 23:45:00 +0000 (20:45 -0300)
commitaf6fd98a699a9ead1b6be8ecb1e65f10ebe464e8
tree6b4d547c68df8db4e010cd0b4d8976b64623675d
parenta4a4bc79d194a9a2c4fa4c7e7d3ac928500fae1a
fix: build system cleanup — replace non-freestanding <string.h> with utils.h, parameterize toolchain, fix header conflicts

- Kernel: replace #include <string.h> (not freestanding) with #include "utils.h"
  in src/arch/x86/fpu.c, src/kernel/fpu.c, src/rump/rumpuser_adros.c
- Makefile: define USER_CC/USER_LD/USER_AR variables for userspace cross-compilation,
  replacing all hardcoded i686-elf-gcc/ld references in FULLTEST, DYN_CC, DYN_LD,
  LDSO, PIE_SO, PIE_ELF rules
- Makefile: pass USER_CC/USER_LD/USER_AR to ulibc sub-make for consistent toolchain
- Makefile: add missing .PHONY targets (test-battery, run-arm, run-riscv, run-mips)
- ulibc Makefile: use ?= for CC/AS/AR/LD so parent can override
- doom Makefile: use ?= for CC/LD so parent can override
- ulibc: remove duplicate stat/fstat declarations from unistd.h (conflicted with
  sys/stat.h when both included); proper declarations remain in sys/stat.h per POSIX
Makefile
src/arch/x86/fpu.c
src/kernel/fpu.c
src/rump/rumpuser_adros.c
user/doom/Makefile
user/ulibc/Makefile
user/ulibc/include/unistd.h