From 16547649683ab2263e9a079dd6d65e9344ce8956 Mon Sep 17 00:00:00 2001 From: "Markus F.X.J. Oberhumer" Date: Fri, 1 Sep 2006 02:38:35 +0200 Subject: [PATCH] Disable lua for now. --- src/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Makefile b/src/Makefile index d7a9670d..c382536a 100644 --- a/src/Makefile +++ b/src/Makefile @@ -52,6 +52,7 @@ DEFS += -DWITH_LZMA INCLUDES += -I$(UPX_LZMADIR) endif # you should set envvar UPX_LUADIR to point to your unpacked lua-5.1.1.tar.gz +# [disabled for now] ifneq ($(wildcard $(UPX_LUADIR)/src/lua.h),) ##DEFS += -DWITH_LUA ##upx_SOURCES_LUA := $(wildcard $(UPX_LUADIR)/src/*.c) @@ -75,9 +76,6 @@ upx$(exeext): $(upx_OBJECTS) $(upx_DEPENDENCIES) %.o : %.cpp $(strip $(CXX) $(call e,CPPFLAGS) $(call e,CXXFLAGS) -o $@ -c $<) -$(upx_OBJECTS_LUA) : lua_%.o : $(UPX_LUADIR)/src/%.c - $(strip $(CXX) $(call e,CPPFLAGS) $(call e,CXXFLAGS) -o $@ -c $<) - ifeq ($(USE_GNUC),1) ##compress_lzma$(objext) : CXXFLAGS += -O3 -fomit-frame-pointer @@ -88,8 +86,10 @@ compress_lzma$(objext) : CXXFLAGS += -Wno-unused ##compress_lzma$(objext) : CXXFLAGS += -Wno-error endif -ifeq ($(USE_GNUC),1) ifneq ($(strip $(upx_OBJECTS_LUA)),) +$(upx_OBJECTS_LUA) : lua_%.o : $(UPX_LUADIR)/src/%.c + $(strip $(CXX) $(call e,CPPFLAGS) $(call e,CXXFLAGS) -o $@ -c $<) +ifeq ($(USE_GNUC),1) $(upx_OBJECTS_LUA) : CXXFLAGS += -Wno-cast-align $(upx_OBJECTS_LUA) : CXXFLAGS += -Wno-cast-qual $(upx_OBJECTS_LUA) : CXXFLAGS += -Wno-error