1# 2# Common global compiler configuration 3# 4 5# Common Compiler Flags ######################################################## 6 7# CHRE requires C++11 and C99 support. 8COMMON_CXX_CFLAGS += -std=c++11 9COMMON_C_CFLAGS += -std=c99 10 11# Configure warnings. 12COMMON_CFLAGS += -Wall 13COMMON_CFLAGS += -Wextra 14COMMON_CFLAGS += -Wno-unused-parameter 15COMMON_CFLAGS += -Wshadow 16COMMON_CFLAGS += -Werror 17 18# Disable exceptions and RTTI. 19COMMON_CFLAGS += -fno-exceptions 20COMMON_CFLAGS += -fno-rtti 21 22# Enable the linker to garbage collect unused code and variables. 23COMMON_CFLAGS += -fdata-sections 24COMMON_CFLAGS += -ffunction-sections 25 26# Common Archive Flags ######################################################### 27 28COMMON_ARFLAGS += rsc 29