# Adjusting the Toolchain

    gcc -dumpspecs | \
    perl -p -e 's@/tools/lib/ld@/lib/ld@g;' \
         -e 's@/tools/lib32/ld@/lib32/ld@g;' \
         -e 's@/tools/lib64/ld@/lib64/ld@g;' \
         -e 's@\*startfile_prefix_spec:\n@$_/usr/lib/ @g;' > \
         $(dirname $(gcc --print-libgcc-file-name))/specs

Note that `/lib`, `/lib32`, or `/lib64` is now the prefix of our dynamic linker.

It is imperative at this point to stop and ensure that the basic functions (compiling and linking) of the adjusted toolchain are working as expected. Since we are doing a 64 bit only build, we will only test the 64 bit ABI. To do this, perform a sanity check: