Skip to content

Instantly share code, notes, and snippets.

@GhostNaix
Last active February 28, 2024 13:46
Show Gist options
  • Select an option

  • Save GhostNaix/db3e0cd2816e37b9d0a38a026111361d to your computer and use it in GitHub Desktop.

Select an option

Save GhostNaix/db3e0cd2816e37b9d0a38a026111361d to your computer and use it in GitHub Desktop.
Compile btop static binary on gentoo

Compile x86-64

make -j$((`nproc`+1)) all STRIP=true STATIC=true

Compile x86

make -j$((`nproc`+1)) CC="gcc -m32" CXX="g++ -m32" all STRIP=true STATIC=true

Compile Arm32

make -j$((`nproc`+1)) CC="arm-linux-gnueabi-gcc-13" CXX="arm-linux-gnueabi-g++-13" STRIP=true STATIC=true

Compile Arm64/AArch64

make -j$((`nproc`+1)) CC="aarch64-unknown-linux-gnu-gcc-13" CXX="aarch64-unknown-linux-gnu-g++-13" all STRIP=true STATIC=true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment