From: Michael Tremer Date: Tue, 18 Dec 2018 21:34:04 +0000 (+0000) Subject: CFLAGS: Build without exception handling by default X-Git-Url: http://git.ipfire.org/?p=people%2Fstevee%2Fpakfire.git;a=commitdiff_plain;h=023b1413418b92fe9d3f2d59563a26326572f997 CFLAGS: Build without exception handling by default 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 --- diff --git a/macros/cflags.macro b/macros/cflags.macro index 2cc4ab88..c5471985 100644 --- a/macros/cflags.macro +++ b/macros/cflags.macro @@ -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