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
# Fix ownership of the toolchain.
chown -R root:root /tools/
+
+ # Update/create linker cache.
+ /tools/sbin/ldconfig
endif
ifeq "$(PASS)" "3"