--- a/Makefile
+++ b/Makefile
@@ -14,7 +14,8 @@ LUABIN= $(LUA)/bin
 ZLIB=../zlib-1.2.3
 
 # no need to change anything below here
-CFLAGS= $(INCS) $(DEFS) $(WARN) -O0 -fPIC
+CFLAGS= $(INCS) $(DEFS) $(WARN) $(OFLAGS) -fPIC
+OFLAGS= -O0
 WARN= -g -Werror -Wall -pedantic #-ansi
 INCS= -I$(LUAINC) -I$(ZLIB)
 LIBS= -L$(ZLIB) -lz -L$(LUALIB) -L$(LUABIN) #-llua51
