[scripts] add patch-specs.sh, a utility for modifying GCC specs
authorJo-Philipp Wich <jow@openwrt.org>
Wed, 18 Jan 2012 03:11:45 +0000 (03:11 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Wed, 18 Jan 2012 03:11:45 +0000 (03:11 +0000)
commitf8b09ee9b09272804234635cc602b42c5e999353
tree83034663be2f839fd5dac91c3904331de00c4b54
parent7df0e51e5a2749877b848d8cd58bda4bedf5b25e
[scripts] add patch-specs.sh, a utility for modifying GCC specs
The patch-specs.sh utility dumps the GCC specs of a given toolchain
and modifies them to always include $STAGING_DIR in the link and
compiler command lines, this makes most -I and -L flags unnecessary
and lets the compiler automatically find libraries and headers in
the staging dir, also solves the majority of -rpath issues.

SVN-Revision: 29767
scripts/patch-specs.sh [new file with mode: 0755]