[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)
commitc9fe1a096b829afab22cdd8a248239b3597890ee
tree83034663be2f839fd5dac91c3904331de00c4b54
parentac2f1b4f014f36e7490df7a5b31aa1fb4bd377ee
[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.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29767 3c298f89-4303-0410-b956-a3cf2f4a3e73
scripts/patch-specs.sh [new file with mode: 0755]