]>
Commit | Line | Data |
---|---|---|
fa913867 MT |
1 | |
2 | # Export CFLAGS + CXXFLAGS | |
037fe87c | 3 | GLOBAL_CFLAGS = -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Werror=format-security |
66459162 | 4 | GLOBAL_CFLAGS += -fexceptions -fPIC -fstack-protector-strong --param=ssp-buffer-size=4 |
326dd710 | 5 | GLOBAL_CFLAGS += -grecord-gcc-switches -Wl,-z,relro -Wl,-z,now |
fa913867 MT |
6 | |
7 | CFLAGS_i686 = -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables | |
8 | CFLAGS_x86_64 = -m64 -mtune=generic | |
daa758ec | 9 | CFLAGS_armv5tel = -march=armv5te -mfloat-abi=soft |
c52860f9 | 10 | CFLAGS_armv7hl = -march=armv7-a -mfpu=vfpv3-d16 -mfloat-abi=hard -mthumb |
fa913867 MT |
11 | |
12 | export CFLAGS = %{GLOBAL_CFLAGS} %{CFLAGS_%{DISTRO_ARCH}} | |
13 | export CXXFLAGS = %{CFLAGS} | |
90d30d4e | 14 | |
326dd710 | 15 | export LDFLAGS = |