|
|
@ -33,6 +33,9 @@ INCLUDE_PREFIX := $(PROJECT)/
|
|
|
|
AR?=ar
|
|
|
|
AR?=ar
|
|
|
|
RANLIB?=ranlib
|
|
|
|
RANLIB?=ranlib
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Linker to use
|
|
|
|
|
|
|
|
LINKER?=gold
|
|
|
|
|
|
|
|
|
|
|
|
# Use gcc-{ar,ranlib} when using gcc
|
|
|
|
# Use gcc-{ar,ranlib} when using gcc
|
|
|
|
ifeq ($(CXX),g++)
|
|
|
|
ifeq ($(CXX),g++)
|
|
|
|
AR:=gcc-ar
|
|
|
|
AR:=gcc-ar
|
|
|
@ -120,6 +123,11 @@ COMMON_FLAGS+=$(addsuffix =1,$(addprefix -DFEATURE_,$(__FEATURES)))
|
|
|
|
# COMMON_FLAGS+=-ffast-math
|
|
|
|
# COMMON_FLAGS+=-ffast-math
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Add linker
|
|
|
|
|
|
|
|
ifneq ($(LINKER),)
|
|
|
|
|
|
|
|
COMMON_FLAGS+=-fuse-ld=$(LINKER)
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
|
|
# Arch and optimisation
|
|
|
|
# Arch and optimisation
|
|
|
|
ifneq ($(ARCH),)
|
|
|
|
ifneq ($(ARCH),)
|
|
|
|
OPT_FLAGS+= $(addprefix -march=,$(ARCH))
|
|
|
|
OPT_FLAGS+= $(addprefix -march=,$(ARCH))
|
|
|
|