]> git.ipfire.org Git - pakfire.git/blobdiff - macros/cflags.macro
Merge branch 'python3'
[pakfire.git] / macros / cflags.macro
index 3447ef452d01b4e05472c1e5d9edbfff5f124a08..80c3670141de948ac37bd7542d68ca9ffb29aa46 100644 (file)
@@ -1,11 +1,13 @@
 
 # Export CFLAGS + CXXFLAGS
-GLOBAL_CFLAGS   = -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Werror=format-security
-GLOBAL_CFLAGS  += -fexceptions -fPIC -fstack-protector-strong --param=ssp-buffer-size=4
+GLOBAL_CFLAGS   = -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,D_GLIBCXX_ASSERTIONS 
+GLOBAL_CFLAGS  += -Werror=format-security-fexceptions
+GLOBAL_CFLAGS  += -fPIC -fstack-protector-strong --param=ssp-buffer-size=4
 GLOBAL_CFLAGS  += -grecord-gcc-switches -fdebug-prefix-map=%{DIR_SRC}=%{debugsourcedir}
 
-CFLAGS_i686     = -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables
-CFLAGS_x86_64   = -m64 -mtune=generic
+CFLAGS_i686     = -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -fstack-clash-protection
+CFLAGS_x86_64   = -m64 -mtune=generic -fstack-clash-protection
+CFLAGS_aarch64  = -fstack-clash-protection
 CFLAGS_armv5tel = -march=armv5te -mfloat-abi=soft
 CFLAGS_armv7hl  = -march=armv7-a -mfpu=vfpv3-d16  -mfloat-abi=hard -mthumb