https://github.com/psumbera/solaris-sysroot
https://github.com/psumbera/solaris-sysroot
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/psumbera/solaris-sysroot
- Owner: psumbera
- Created: 2025-02-20T16:34:54.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-21T15:34:46.000Z (over 1 year ago)
- Last Synced: 2025-02-21T16:32:09.691Z (over 1 year ago)
- Language: Shell
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Solaris 11.4 Sysroot Builder
A Bash script to create a Solaris 11.4 sysroot for cross-compiling, with a focus on Rust cross-compilation.
Features
* Builds a Solaris 11.4 sysroot for cross-compiling.
* Supports both SPARC and x86 (i386/amd64) architectures.
Sysroot Contents
* Essential Solaris system libraries (libc, libm, libsocket, etc.)
* Required header files (system/header, system/library, etc.)
* GCC runtime and system object files (crt1.o, crti.o, etc.)
Prerequisites
* Solaris 11.4 (with Rust installed)
* `mf2tar` (https://github.com/illumos/sysroot/tree/master/mf2tar)
Usage
* Clone and build `mf2tar`
* `git clone https://github.com/illumos/sysroot.git`
* `cd sysroot/mf2tar/`
* `cargo build`
* Build Solaris Sysroot
* `git clone https://github.com/psumbera/solaris-sysroot.git`
* `cd solaris-sysroot`
* `PATH=~/sysroot/mf2tar/target/debug:$PATH ./build-sysroot.sh`
Example Output:
```
e82b78c14464cc2dc71f3cdab312df3dd63441d7c23eeeaf34d41d8b947688d3 solaris-11.4.42.111.0-i386-sysroot-v2025-02-21.tar.bz2
```