1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-24 22:13:52 +01:00

boards/x86-multiboot-common: Use gcc-ar when building with LTO

This commit is contained in:
Joakim Nohlgård 2015-07-14 10:00:01 +02:00 committed by Kaspar Schleiser
parent 0e5522950a
commit efedaa1a43

View File

@ -32,7 +32,11 @@ export CPU = x86
# toolchain config
export CC ?= $(PREFIX)gcc
export AR ?= $(PREFIX)ar
ifeq ($(LTO),1)
export AR = $(PREFIX)gcc-ar
else
export AR = $(PREFIX)ar
endif
export AS ?= $(PREFIX)as
export RANLIB ?= $(PREFIX)ranlib
export LINK ?= $(RIOTBASE)/boards/x86-multiboot-common/dist/link $(PREFIX)gcc