toolchain: only take last found libgcc* file
authorjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 27 Jun 2014 10:40:21 +0000 (10:40 +0000)
committerjow <jow@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 27 Jun 2014 10:40:21 +0000 (10:40 +0000)
commit5c3444c8e0a75fa867d2b31314115ee86385f4c9
treed9eee57c08d4b5071af6dc4031a2d353ebdbeed0
parentcd02ea50dc714f3728629c7abbe71cb5ac7ab20f
toolchain: only take last found libgcc* file

The current $(wildcard ...) match might return multiple files which will break subsequent cp commands
with an error like:

  cp: target `/home/user/openwrt/staging_dir/target-mips_34kc_uClibc-0.9.33.2/root-ar71xx/tmp-libc/lib/libgcc_s_pic.a' is not a directory

Prevent this issue by only taking the last path returned by globbing.

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@41357 3c298f89-4303-0410-b956-a3cf2f4a3e73
package/libs/toolchain/Makefile