From 025b7ad557b27ef0964e4b218549703f4d34e946 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sat, 11 Aug 2012 18:25:34 -0400 Subject: [PATCH] toolchain: Remove the cross compiler, when we don't need it anymore. --- lfs/cleanup-toolchain | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lfs/cleanup-toolchain b/lfs/cleanup-toolchain index ed1a97ef5d..1be39fef6c 100644 --- a/lfs/cleanup-toolchain +++ b/lfs/cleanup-toolchain @@ -57,7 +57,11 @@ ifeq "$(PASS)" "1" -e 's@/lib\(64\)\?/ld@/tools&@g' \ -e "/^\*cpp:$$/{n;s,$$, -isystem /tools/include,}" > $$SPECS endif + ifeq "$(PASS)" "2" + # Remove the first cross compiler which is not needed anymore. + find /tools/ -name "$(CROSSTARGET)*" | xargs rm -rfv + -strip --strip-debug /tools/lib/* -strip --strip-unneeded /tools/{,s}bin/* rm -rfv /tools/{,share}/{info,man} /usr/local/man -- 2.39.2