diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 18 |
1 files changed, 10 insertions, 8 deletions
@@ -66,10 +66,19 @@ endif # make CFLAGS="<flags>" CFLAGS_DEF = -std=gnu99 CFLAGS_DEF += -pipe -CFLAGS_DEF += -O2 ifeq ($(DEBUG), 1) CFLAGS_DEF += -g + CFLAGS_DEF += -O0 + CFLAGS_DEF += -fno-omit-frame-pointer +else + CFLAGS_DEF += -O2 + CFLAGS_DEF += -fomit-frame-pointer + CFLAGS_DEF += -fno-strict-aliasing + CFLAGS_DEF += -fasynchronous-unwind-tables + ifneq ($(COMPILER), clang) + CFLAGS_DEF += -fno-delete-null-pointer-checks + endif endif ifeq ($(HARDENING), 1) @@ -83,13 +92,6 @@ ifeq ($(HARDENING), 1) CFLAGS_DEF += -fexceptions endif -CFLAGS_DEF += -fomit-frame-pointer -CFLAGS_DEF += -fno-strict-aliasing -CFLAGS_DEF += -fasynchronous-unwind-tables -ifneq ($(COMPILER), clang) -CFLAGS_DEF += -fno-delete-null-pointer-checks -endif - CFLAGS_MIN = -D_REENTRANT CFLAGS_MIN += -D_LARGEFILE_SOURCE CFLAGS_MIN += -D_LARGEFILE64_SOURCE |