2 # Export CFLAGS + CXXFLAGS
3 GLOBAL_CFLAGS = -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fPIC
4 GLOBAL_CFLAGS += -fstack-protector-all --param=ssp-buffer-size=4
6 CFLAGS_i686 = -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables
7 CFLAGS_x86_64 = -m64 -mtune=generic
8 CFLAGS_armv5tel = -march=armv5te -mfloat-abi=soft
9 CFLAGS_armv7hl = -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -mthumb
11 export CFLAGS = %{GLOBAL_CFLAGS} %{CFLAGS_%{DISTRO_ARCH}}
12 export CXXFLAGS = %{CFLAGS}