[scripts] ext-toolchain.sh: rework generated gcc wrapper
authorJo-Philipp Wich <jow@openwrt.org>
Sun, 29 Jan 2012 18:53:12 +0000 (18:53 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Sun, 29 Jan 2012 18:53:12 +0000 (18:53 +0000)
commit44a382aa440e44db7f17631a5e10c31afa11f111
tree33ca7603c967be1f7a7995648c4bea4e6a039d5f
parent0c4dc0366772d0c888562d03d69bd1fca714d78b
[scripts] ext-toolchain.sh: rework generated gcc wrapper
Only append -L and -Wl,-rpath-link flags if the command line contains -l, -L, -shared or -static flags;
this is needed to suppress "-rpath-link: linker input file unused because linking not done" on each cc invocation.

SVN-Revision: 29946
scripts/ext-toolchain.sh