001-allow_optim_flags.patch 359 B

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