From cb09f4fef482ba146dd1c18852edb0fe5efe3b07 Mon Sep 17 00:00:00 2001 From: Roberto Ierusalimschy Date: Fri, 6 May 2011 13:00:23 -0300 Subject: [PATCH] details --- makefile | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/makefile b/makefile index 5ed42ae8..299c2a38 100644 --- a/makefile +++ b/makefile @@ -18,9 +18,9 @@ CWARNSC=-pedantic -Wextra \ -Wstrict-aliasing \ # the next warnings generate to much noise, so they are disabled # -Wlogical-op \ + # -Wstrict-overflow=2 \ # -Wformat=2 \ - # -Wstrict-overflow=5 \ - # -Wcast-qual \ + # -Wcast-qual \ # The next warnings are not valid for C++ CWARNS= $(CWARNSC) \ @@ -35,14 +35,16 @@ CWARNS= $(CWARNSC) \ # -DEXTERNMEMCHECK -DHARDSTACKTESTS -DHARDMEMTESTS -DTRACEMEM='"tempmem"' # -g -DLUA_USER_H='"ltests.h"' # -fomit-frame-pointer #-pg -malign-double -TESTS= -DLUA_USER_H='"ltests.h"' # -g -O0 +# TESTS= -DLUA_USER_H='"ltests.h"' # -g -O0 + +# -mtune=native -fomit-frame-pointer +LOCAL = $(TESTS) $(CWARNS) -g -LOCAL = $(TESTS) $(CWARNS) # enable Linux goodies -MYCFLAGS= $(LOCAL) -DLUA_USE_LINUX -DLUA_COMPAT_ALL -g -MYLDFLAGS= -Wl,-E -g +MYCFLAGS= $(LOCAL) -DLUA_USE_LINUX -DLUA_COMPAT_ALL +MYLDFLAGS= $(LOCAL) -Wl,-E MYLIBS= -ldl -lreadline -lhistory -lncurses