From: Ralphred Date: Fri, 25 Oct 2024 23:01:35 +0000 (+0100) Subject: added distcc-toolchain-version X-Git-Url: https://git.liquid.me.uk/?a=commitdiff_plain;h=HEAD;p=stuff.git added distcc-toolchain-version --- diff --git a/distcc-toolchain-version b/distcc-toolchain-version new file mode 100755 index 0000000..f197187 --- /dev/null +++ b/distcc-toolchain-version @@ -0,0 +1,6 @@ +#!/bin/bash +BINUTILS_VER=$(qatom -F '%{PV}' $(qfile -v $(realpath /usr/bin/ld) | cut -d' ' -f1)) +GCC_VER=$(qatom -F '%{PV}' $(qfile -v $(realpath /usr/bin/gcc) | cut -d' ' -f1)) +KERNEL_VER=$(qatom -F '%{PV}' $(qlist -Ive sys-kernel/linux-headers)) +LIBC_VER=$(qatom -F '%{PV}' $(qlist -Ive sys-libs/glibc)) +echo "crossdev --b '~${BINUTILS_VER}' --g '~${GCC_VER}' --k '~${KERNEL_VER}' --l '~${LIBC_VER}' -t $(portageq envvar CHOST)"