]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - lfs/cleanup-toolchain
binutils: Drop modifying CFLAGS in PASS=1
[ipfire-2.x.git] / lfs / cleanup-toolchain
index 0b3252f9f4f23185f2696d32e88d1ad543f7f718..e904bca87a79fb05172da16a0d90205309824d38 100644 (file)
@@ -52,13 +52,6 @@ md5 :
 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
        @$(PREBUILD)
 ifeq "$(PASS)" "1"
-       SPECS=$$(dirname $$(/tools/bin/$(CROSSTARGET)-gcc -print-libgcc-file-name))/specs; \
-       /tools/bin/$(CROSSTARGET)-gcc -dumpspecs | sed \
-               -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
 
@@ -75,7 +68,7 @@ ifeq "$(PASS)" "2"
        /tools/sbin/ldconfig
 endif
 
-ifeq "$(PASS)" "3"
+ifeq "$(PASS)" "2"
        mv -v /tools/bin/{ld,ld-old}
        mv -v /tools/$(BUILDTARGET)/bin/{ld,ld-old}
        mv -v /tools/bin/{ld-new,ld}