X-Git-Url: http://git.ozo.com/?a=blobdiff_plain;f=package%2Flibs%2Ftoolchain%2FMakefile;h=e4a78ed5f2d48a19061a9f04eba7010fa27da494;hb=3f6bbd28589147b53d0ede0e4102deebf311614a;hp=117447f5814c176854e1f9d9dd42d0fe75b7bf38;hpb=b4696a8be59e3003d7421e6b4e27efce89b7f4eb;p=openwrt-github%2F.git diff --git a/package/libs/toolchain/Makefile b/package/libs/toolchain/Makefile index 117447f581..e4a78ed5f2 100644 --- a/package/libs/toolchain/Makefile +++ b/package/libs/toolchain/Makefile @@ -289,9 +289,9 @@ define Build/Prepare mkdir -p $(PKG_BUILD_DIR) endef -LIBGCC_A=$(wildcard $(TOOLCHAIN_DIR)/lib/gcc/*/*/libgcc_pic.a) -LIBGCC_MAP=$(wildcard $(TOOLCHAIN_DIR)/lib/gcc/*/*/libgcc.map) -LIBGCC_SO=$(wildcard $(TOOLCHAIN_DIR)/lib/libgcc_s.so.*) +LIBGCC_A=$(lastword $(wildcard $(TOOLCHAIN_DIR)/lib/gcc/*/*/libgcc_pic.a)) +LIBGCC_MAP=$(lastword $(wildcard $(TOOLCHAIN_DIR)/lib/gcc/*/*/libgcc.map)) +LIBGCC_SO=$(lastword $(wildcard $(TOOLCHAIN_DIR)/lib/libgcc_s.so.*)) ifeq ($(CONFIG_EXTERNAL_TOOLCHAIN),) ifneq ($(if $(CONFIG_USE_UCLIBC),$(CONFIG_GCC_VERSION_LINARO)),) BUILD_LIBGCC:=$(if $(CONFIG_avr32)$(CONFIG_m68k)$(CONFIG_powerpc),,$(PKG_BUILD_DIR)/libgcc_s.so.*)