From 56f766f357a2dffa2aa6a562971b04bc7d9f7c97 Mon Sep 17 00:00:00 2001 From: Sebastian Kemper Date: Sat, 10 Jun 2017 12:48:23 +0200 Subject: [PATCH] FS-10384 [mod_lua] Fix Makefile target When running "make swigclean" in mod_lua directory and trying to compile mod_lua afterward, the build fails because the target mod_lua_wrap.cpp doesn't exist. The target is wrongly called lua_wrap instead. making all mod_lua make[7]: Entering directory '/path/to/freeswitch-1.6.17/src/mod/languages/mod_lua' CXX mod_lua_la-mod_lua.lo CXX mod_lua_la-freeswitch_lua.lo make[7]: *** No rule to make target 'mod_lua_wrap.cpp', needed by 'mod_lua_la-mod_lua_wrap.lo'. Stop. Fix this by renaming lua_wrap to mod_lua_wrap.cpp. Signed-off-by: Sebastian Kemper --- src/mod/languages/mod_lua/Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod/languages/mod_lua/Makefile.am b/src/mod/languages/mod_lua/Makefile.am index f47a069ab6..c9be2f36dd 100644 --- a/src/mod/languages/mod_lua/Makefile.am +++ b/src/mod/languages/mod_lua/Makefile.am @@ -13,12 +13,12 @@ mod_lua_la_CFLAGS = $(AM_CPPFLAGS) $(LUA_CFLAGS) $(CPPFLAGS) mod_lua_la_LIBADD = $(switch_builddir)/libfreeswitch.la mod_lua_la_LDFLAGS = -avoid-version -module -no-undefined -shared -lm $(AM_LDFLAGS) $(SOLINK) $(LUA_LIBS) -reswig: swigclean lua_wrap +reswig: swigclean mod_lua_wrap.cpp swigclean: clean rm -f mod_lua_wrap.* -lua_wrap: mod_lua_extra.c +mod_lua_wrap.cpp: mod_lua_extra.c swig2.0 -lua -c++ -I../../../../src/include -oh mod_lua_wrap.h -o mod_lua_wrap.cpp freeswitch.i echo "#include \"mod_lua_extra.c\"" >> mod_lua_wrap.cpp patch -s -p0 -i hack.diff