Subversion Repositories freemyipod

Rev

Rev 885 | Rev 887 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 885 Rev 886
Line 4... Line 4...
4
ifeq ($(shell which $(CROSS)gcc),)
4
ifeq ($(shell which $(CROSS)gcc),)
5
CROSS   := arm-elf-eabi-
5
CROSS   := arm-elf-eabi-
6
endif
6
endif
7
 
7
 
8
FLTO    ?= -flto -flto-partition=none
8
FLTO    ?= -flto -flto-partition=none
9
ifneq ($(shell $(CROSS)gcc -flto 2>&1 | grep -- -flto),)
9
ifeq ($(shell $(CROSS)gcc -v --help 2>/dev/null | grep -- -flto),)
10
FLTO    :=
10
FLTO    :=
11
endif
11
endif
12
 
12
 
13
CC      := $(CCACHE) $(CROSS)gcc
13
CC      := $(CCACHE) $(CROSS)gcc
14
LD      := $(CROSS)ld
14
LD      := $(CROSS)ld