From: Michael Jerris Date: Tue, 20 Jan 2015 18:03:06 +0000 (-0500) Subject: FS-7180: add --enable-sytem-lua configure arg to allow building mod_lua against syste... X-Git-Tag: v1.4.16~1^2~18 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=749ced5f6074c84b58e5a084f89fa86f4a93a043;p=thirdparty%2Ffreeswitch.git FS-7180: add --enable-sytem-lua configure arg to allow building mod_lua against system lua and allow mod_lua to build against lua 5.1 or 5.2 --- diff --git a/src/mod/languages/mod_lua/Makefile.am b/src/mod/languages/mod_lua/Makefile.am index 57a2c6b213..18001c2a23 100644 --- a/src/mod/languages/mod_lua/Makefile.am +++ b/src/mod/languages/mod_lua/Makefile.am @@ -18,7 +18,11 @@ mod_lua_la_CFLAGS = -I$(LUA_DIR) $(AM_CPPFLAGS) -DLUA_USE_LINUX endif mod_lua_la_LIBADD = $(switch_builddir)/libfreeswitch.la -mod_lua_la_LDFLAGS = -avoid-version -module -no-undefined -shared -lm -llua $(AM_LDFLAGS) $(SOLINK) +mod_lua_la_LDFLAGS = -avoid-version -module -no-undefined -shared -lm $(AM_LDFLAGS) $(SOLINK) + +if SYSTEM_LUA +mod_lua_la_LDFLAGS += -llua +endif reswig: swigclean lua_wrap