Skip to content

Instantly share code, notes, and snippets.

@kuzetsa
Last active August 11, 2022 06:46
Show Gist options
  • Save kuzetsa/3679a758b87b32d5df76537af6769fcf to your computer and use it in GitHub Desktop.
Save kuzetsa/3679a758b87b32d5df76537af6769fcf to your computer and use it in GitHub Desktop.
making sure the toolchain still works sensibly / still self-hosted & able to build itself, as well as rebuilding existing binaries
#!/bin/sh
emerge -1 sys-devel/libtool && \
emerge -1 sys-devel/gcc:12 && \
emerge -1 sys-devel/binutils && \
emerge -1 sys-libs/glibc && \
emerge -1 sys-devel/llvm:14 && \
revdep-rebuild --library 'libstdc++.so.6' -- \
--exclude sys-devel/llvm \
--exclude sys-devel/gcc \
--exclude sys-libs/glibc && \
revdep-rebuild --library 'libc.so' -- \
--exclude sys-devel/llvm \
--exclude sys-devel/gcc \
--exclude sys-libs/glibc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment