ahgamut /superconfigure

wrap autotools configure scripts to build with Cosmopolitan Libc

★ 299⑂ 47👁 9⑃ 32● 55▤ 67
MakefileUnlicenseCreated 2023-07-10
Download: z0.0.66z0.0.66 ↓0.0.662026-05-25
+0
Daily
299
stars
47
forks
9
watchers
32
prs
55
issues
67
releases

README

superconfigure

superconfigure is a collection of programs ported to run as fat binaries using
[Cosmopolitan Libc][cosmo]. This repository includes build scripts for popular
software such as bash, lua, emacs, GNU Coreutils, sed, gcc-14, curl,
and others. For each of these, the source code is downloaded from the upstream
sources, compiled for x86_64 and aarch64, and finally combined into a fat
binary using Cosmopolitan Libc's apelink program.

 What's included in the build
The built software is split into the following zip files:  
compress.zip  
contains tar, zip, unzip, bzip2, zstd, brotli, gzip.  
cli.zip  
contains bash, zsh, grep, less, find, GNU coreutils, and ninja.  
editor.zip  
contains vim, nano, and emacs.  
x86_64-gcc.zip  
contains the gcc-14.1 and binutils-2.42 tools targeting (x86-64-linux-cosmo).  
aarch64-gcc.zip  
contains the gcc-14.1 and binutils-2.42 tools targeting (aarch64-linux-cosmo).  
lang.zip  
contains languages janet, lua, php, and Python 3.12.

 Where can I download the built software?

The  Releases page
should have the most recent builds of executables in this repo, built via Github
Actions. 

If you'd like to add your own software build scripts, submit a PR! Read up
config/README.md how all of this works.

 [!TIP]
 If you're on Windows, after downloading the zip files you should rename the executables inside to end with .exe in order to run them.

 How can I build these locally?

The build scripts assume Debian/Ubuntu, and also use things like bash, find,
wget, cat, sed, git, GNU make, patch, cp, mkdir etc. You can
follow the steps in .github/workflows/release.yml on your machine:

- clone this repository
- install necessary build dependencies:
    - qemu to run aarch64 ELF binaries
    - SSL certificates
- clone the cosmopolitan libc repository within this repository
- build the cosmopolitan toolchain by running ./.github/scripts/cosmo

sh
git clone https://github.com/ahgamut/superconfigure
cd superconfigure
git clone --depth=1 https://github.com/jart/cosmopolitan
 install build dependencies
bash ./.github/scripts/setup
bash ./.github/scripts/cosmo


 Building the executable collections

 to build bash, less, find, tree, and GNU coreutils run make -j4 cli
 to build vim, emacs, and nano run make -j4 editor
 to build the GCC collection for x86_64 run make -j4 x86_64-gcc

you can run ./.github/scripts/collectzip to store all build results in a
ZIP file.

 Building collections via make

You can build fat binaries using the Makefile as well! After setting up the
toolchain, if you want to get the binaries for the web folder, run 

sh
 assume ./.github/scripts/setup has already been run
 assume ./.github/scripts/cosmo has already been run
export MAXPROC=4
make -j4 web
ls -al results/bin/


 Building individual targets without make

Let's say you wanted to build bash. The steps are:

sh
 assume ./.github/scripts/setup has already been run
 assume ./.github/scripts/cosmo has already been run
export MAXPROC=4
make -j2 o/c

Top issues

Latest release

z0.0.66 z0.0.66 Pre-release 2026-05-25
built with https://github.com/jart/cosmopolitan/commit/4a47191f510c7254a65f525400e39109ddf61262

web tools now use OpenSSL 3.6

Snapshot: 2026-11-27T22:26:53Z · Data license Apache-2.0 · JSON