LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

musl-gcc

GCC wrapper that compiles programs against musl libc instead of glibc

TLDR

Compile program with musl libc
$ musl-gcc -o [program] [source.c]
copy
Compile static binary
$ musl-gcc -static -o [program] [source.c]
copy
Compile with optimization
$ musl-gcc -O2 -o [program] [source.c]
copy

SYNOPSIS

musl-gcc [options] sourcefiles_...

DESCRIPTION

musl-gcc is a GCC wrapper that compiles programs against musl libc instead of glibc. Musl is a lightweight C standard library designed for static linking and embedded systems. Creates smaller, portable binaries suitable for containers and minimal environments.

PARAMETERS

-o file

Output file name.
-static
Create statically linked binary.
-O level
Optimization level.
-specs file
Use custom specs file.

INSTALL

sudo apt install musl-tools
copy
sudo dnf install musl-gcc
copy

SEE ALSO

gcc(1), clang(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid