Skip to content

checkra1n/newlib

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Newlib for aarch64-darwin

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published