From 14de087472737ffa116912dbcba7741c8b27e862 Mon Sep 17 00:00:00 2001 From: Marcos Marado Date: Thu, 26 Feb 2015 15:44:03 +0000 Subject: [PATCH] compilation default without optimization Taking -O2 from the compilation flags with make Amnuts behave a little better (avoiding crashes), specially in recent gcc versions. Those bugs should be hunted and fixed, but in the meantime, better "safe" than sorry. --- src/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Makefile b/src/Makefile index 054e27e..c0dc3e0 100644 --- a/src/Makefile +++ b/src/Makefile @@ -43,7 +43,8 @@ IDENTDCPPFLAGS = -I$(INCDIR) #IDENTDCPPFLAGS = -I$(INCDIR) -DMANDNS # These are sort of gcc dependant; roll your own if you use another compiler -CFLAGS = -g -O2 -Wall -W +CFLAGS = -g -Wall -W +#CFLAGS = -g -O2 -Wall -W #CFLAGS = -g -O0 -fno-inline #CFLAGS = -g -O2 -Wall -W -Wfloat-equal -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wpacked -Wnested-externs -Winline -Wlong-long #CFLAGS = -g -O2 -Wall -W -pedantic -Wfloat-equal -Wtraditional -Wundef -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual -Wcast-align -Wwrite-strings -Wconversion -Waggregate-return -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wmissing-noreturn -Wpacked -Wpadded -Wredundant-decls -Wnested-externs -Wunreachable-code -Winline -Wlong-long