Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/checkra1n/newlib

Newlib for aarch64-darwin
https://github.com/checkra1n/newlib

Last synced: 3 months ago
JSON representation

Newlib for aarch64-darwin

Awesome Lists containing this project

README

        

# Newlib

This repository contains a [Newlib](https://sourceware.org/newlib/) port for bare metal AArch64 with Darwin ABI (`aarch64-none-darwin`).
This is used as the standard library in [PongoOS](https://github.com/checkra1n/pongoOS).

Some patches had to be applied in order to make it compile with clang and under Darwin ABI.
The current Newlib is based on version 4.1.0.

### Building

On macOS with Xcode installed, or on Linux with `clang`/`llvm-ar`/`llvm-ranlib` and Apple's `ld64` installed:

make

If you need to adjust any of the paths or options:

EMBEDDED_CC="path/to/clang" \
EMBEDDED_CFLAGS="" \
EMBEDDED_LDFLAGS="-fuse-ld=path/to/ld64" \
EMBEDDED_AR="path/to/llvm-ar" \
EMBEDDED_RANLIB="path/to/llvm-ranlib" \
make

If there's further defaults you need to override, see `EMBEDDED_CC_FLAGS` and `EMBEDDED_LD_FLAGS` in the Makefile.