Skip to content

Commit

Permalink
compilation default without optimization
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
marado committed Feb 26, 2015
1 parent 4318ec6 commit 14de087
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 14de087

Please sign in to comment.