]> git.ipfire.org Git - people/stevee/pakfire.git/commitdiff
CFLAGS: Build without exception handling by default
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 18 Dec 2018 21:34:04 +0000 (21:34 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 18 Dec 2018 21:34:04 +0000 (21:34 +0000)
GCC will automatically enable this for languages that require
it like C++, but it does waste space for languages that don't
have exceptions (like C).

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
macros/cflags.macro

index 2cc4ab8884120ce5f6e0c2ec3a388b37561647c3..c54719851c6597b4f1ddc267da434f3bf8c54ce1 100644 (file)
@@ -1,7 +1,7 @@
 
 # Export CFLAGS + CXXFLAGS
 GLOBAL_CFLAGS   = -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -Werror=format-security
-GLOBAL_CFLAGS  += -fexceptions -fPIC -fstack-protector-strong -grecord-gcc-switches
+GLOBAL_CFLAGS  += -fPIC -fstack-protector-strong -grecord-gcc-switches
 
 CFLAGS_i686     = -m32 -march=i686 -mtune=atom -fasynchronous-unwind-tables -fstack-clash-protection
 CFLAGS_x86_64   = -m64 -mtune=generic -fstack-clash-protection