From c75579dd6ae4db1520f453c85f2ddb49fb2912a5 Mon Sep 17 00:00:00 2001 From: Ralphred Date: Sat, 26 Oct 2024 00:01:35 +0100 Subject: [PATCH] added distcc-toolchain-version --- distcc-toolchain-version | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 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)" -- 2.45.2