From: Michael Tremer Date: Sat, 11 Aug 2012 22:25:34 +0000 (-0400) Subject: toolchain: Remove the cross compiler, when we don't need it anymore. X-Git-Tag: v2.13-beta1~277 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=025b7ad557b27ef0964e4b218549703f4d34e946;p=ipfire-2.x.git toolchain: Remove the cross compiler, when we don't need it anymore. --- 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