#!/bin/bash source ../functions/main # Amend the GCC specs file so that it points to the new dynamic linker, and so # that GCC knows where to find its start files. gcc -dumpspecs | \ sed \ -e 's@/tools/lib/ld@/lib/ld@g' \ -e '/\*startfile_prefix_spec:/{n;s@.*@/usr/lib/ @}' > \ `dirname $(gcc --print-libgcc-file-name)`/specs exit $?