Fix aducrf101 builds with GCC 4.9+

Mixing LTO and libraries requires the use of gcc-ar instead of ar.
See https://gcc.gnu.org/wiki/LinkTimeOptimizationFAQ?action=recall&rev=5#ar.2C_nm_and_ranlib
This commit is contained in:
Jim Paris 2015-02-16 14:47:43 -05:00
parent 468e94809a
commit d350aa4dd7

View File

@ -39,8 +39,8 @@ CROSS_COMPILE = arm-none-eabi-
CC = $(CROSS_COMPILE)gcc CC = $(CROSS_COMPILE)gcc
LD = $(CROSS_COMPILE)gcc LD = $(CROSS_COMPILE)gcc
AS = $(CROSS_COMPILE)gcc AS = $(CROSS_COMPILE)gcc
AR = $(CROSS_COMPILE)ar AR = $(CROSS_COMPILE)gcc-ar
NM = $(CROSS_COMPILE)nm NM = $(CROSS_COMPILE)gcc-nm
OBJCOPY = $(CROSS_COMPILE)objcopy OBJCOPY = $(CROSS_COMPILE)objcopy
OBJDUMP = $(CROSS_COMPILE)objdump OBJDUMP = $(CROSS_COMPILE)objdump
STRIP = $(CROSS_COMPILE)strip STRIP = $(CROSS_COMPILE)strip