From 307d734335634211fe09d033efe42bd21c4a874f Mon Sep 17 00:00:00 2001
From: Tristan Van Berkom <tristan.vanberkom@codethink.co.uk>
Date: Thu, 16 Feb 2017 19:03:13 +0900
Subject: Place /tools at the end of PATH for the final stage3 builds.

This is because otherwise we end up using the sysrooted
/tools/sbin/ldconfig, causing the gcc build to fail as it
does not find libz.so which is otherwise properly located
if /sbin/ldconfig is used.
---
 build-essential/glibc.bst | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'build-essential/glibc.bst')

diff --git a/build-essential/glibc.bst b/build-essential/glibc.bst
index 32fdf774..1c10c678 100644
--- a/build-essential/glibc.bst
+++ b/build-essential/glibc.bst
@@ -12,7 +12,7 @@ depends:
 - build-essential/linux-api-headers.bst
 
 environment:
-  PATH: /tools/bin:/tools/sbin:/usr/bin:/bin:/usr/sbin:/sbin
+  PATH: /usr/bin:/bin:/usr/sbin:/sbin:/tools/bin:/tools/sbin
 
 config:
 
-- 
cgit v1.2.1

