Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/checkra1n/newlib
- Owner: checkra1n
- Created: 2021-01-11T05:53:37.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2023-05-06T23:33:30.000Z (over 1 year ago)
- Last Synced: 2023-05-07T00:23:55.494Z (over 1 year ago)
- Language: C
- Size: 11.4 MB
- Stars: 43
- Watchers: 16
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
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" \
makeIf there's further defaults you need to override, see `EMBEDDED_CC_FLAGS` and `EMBEDDED_LD_FLAGS` in the Makefile.