-rw-r--r-- | luajit2/src/Makefile | 4 | ||||
-rw-r--r-- | makedefs | 5 |
diff --git a/luajit2/src/Makefile b/luajit2/src/Makefile index 9e9c4621..ed9819e1 100644 --- a/luajit2/src/Makefile +++ b/luajit2/src/Makefile @@ -34,7 +34,7 @@ CC= gcc # to slow down the C part by not omitting it. Debugging, tracebacks and # unwinding are not affected -- the assembler part has frame unwind # information and GCC emits it where needed (x64) or with -g (see CCDEBUG). -CCOPT= -O2 -fomit-frame-pointer +CCOPT= -O2 -fomit-frame-pointer -ffast-math # Use this if you want to generate a smaller binary (but it's slower): #CCOPT= -Os -fomit-frame-pointer # Note: it's no longer recommended to use -O3 with GCC 4.x. @@ -48,7 +48,7 @@ CCOPT= -O2 -fomit-frame-pointer # x86/x64 only: For GCC 4.2 or higher and if you don't intend to distribute # the binaries to a different machine you could also use: -march=native # -CCOPT_x86= -march=i686 -msse -msse2 +CCOPT_x86= -march=i686 CCOPT_x64= CCOPT_arm= CCOPT_ppc= @@ -59,9 +59,8 @@ ifeq ($(strip $(DEBUG)), yes) CFLAGS = -g -Wall CXXFLAGS = -g -Wall else - # on windows do not use -fomit-frame-pointer - CFLAGS = -O3 -fno-stack-protector -fomit-frame-pointer -ffast-math -Wall - CXXFLAGS = -Os -fno-exceptions -fno-stack-protector -ffast-math -fno-rtti -Wall + CFLAGS = -O2 -fomit-frame-pointer -ffast-math -Wall + CXXFLAGS = -Os -fno-exceptions -ffast-math -fno-rtti -Wall endif PTHREAD_DEFS += -D_REENTRANT |