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 <sebastian_ml@gmx.net>
This commit is contained in:
parent
61f8380b70
commit
56f766f357
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue