Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 886 Bytes

README.md

File metadata and controls

24 lines (16 loc) · 886 Bytes

Newlib

This repository contains a Newlib port for bare metal AArch64 with Darwin ABI (aarch64-none-darwin).
This is used as the standard library in 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="<whatever>" \
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.