Skip to content

Configure changes for compiling on Darwin using llvm toolchain#741

Merged
Kalamatee merged 3 commits intoaros-development-team:masterfrom
bsek:llvm-x86_64-darwin
Apr 4, 2026
Merged

Configure changes for compiling on Darwin using llvm toolchain#741
Kalamatee merged 3 commits intoaros-development-team:masterfrom
bsek:llvm-x86_64-darwin

Conversation

@bsek
Copy link
Copy Markdown
Contributor

@bsek bsek commented Mar 11, 2026

No description provided.

bsek added 3 commits March 3, 2026 07:00
- Detect aarch64/arm64 host CPU in configure.in and use -arch x86_64
  instead of -m64 for kernel ISA/linker flags on Apple Silicon
- Mark aarch64 darwin -> x86_64 as non-cross-compiling (Apple Clang
  handles this natively)
- Add 32-bit ISA flags and link extras for darwin x86_64 target
- Add usecrosstoolsdir flag to %build_with_cmake so cmake-based builds
  can opt out of CROSSTOOLSDIR include/lib paths (used by LLVM
  toolchain)
- Fix LLVM crosstools: moved linker flags from cflags, add libunwind
  cross-compile workarounds
- Add -E flag to patch command in fetch.sh, to ensure consistent
  handling between linux and darwin
- Fix aros_target32_cpu -> aros_target_cpu32 typo
…em kernel tools

- Use clang's integrated assembler on darwin since it lacks a GNU-compatible
  external assembler (-no-integrated-as fails).
- Use system ranlib/nm for darwin kernel tools instead of llvm-ranlib/llvm-nm
  which may not be in PATH, causing empty KERNEL_RANLIB and build failures.
@Kalamatee Kalamatee merged commit f8c08c3 into aros-development-team:master Apr 4, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants