aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2022-12-26 10:13:03 +0000
committerSam James <sam@gentoo.org>2022-12-28 19:11:59 +0000
commit77d64fc9897a157aafec35515848c907b4661bb0 (patch)
tree934d035d9cb5f2d408df48c1edbff3672e24d040
parentAllow EPREFIX to be overridden for manipulating prefixed ROOT (diff)
downloadgcc-config-77d64fc9897a157aafec35515848c907b4661bb0.tar.gz
gcc-config-77d64fc9897a157aafec35515848c907b4661bb0.tar.bz2
gcc-config-77d64fc9897a157aafec35515848c907b4661bb0.zip
Read CHOST with portageq from EROOT and not /
Failing that, the fallback method still reads from EROOT as before. Signed-off-by: James Le Cuirot <chewi@gentoo.org> Signed-off-by: Sam James <sam@gentoo.org>
-rwxr-xr-xgcc-config1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc-config b/gcc-config
index c5d907c..236c433 100755
--- a/gcc-config
+++ b/gcc-config
@@ -13,6 +13,7 @@ BROOT="@GENTOO_EPREFIX@"
[[ ${BROOT} == @*@ ]] && BROOT=""
: ${EPREFIX="${BROOT}"}
EROOT="${ROOT%/}${EPREFIX}/"
+export PORTAGE_CONFIGROOT="${EROOT}"
cd /