[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)
commit8f49540aa7d8b79e9479c423e3745fafb3b7ce6d
tree33ca7603c967be1f7a7995648c4bea4e6a039d5f
parent2c6847fa4599e7b8819a45b8842dd2bdc2585e33
[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.

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29946 3c298f89-4303-0410-b956-a3cf2f4a3e73
scripts/ext-toolchain.sh