From 749ced5f6074c84b58e5a084f89fa86f4a93a043 Mon Sep 17 00:00:00 2001 From: Michael Jerris Date: Tue, 20 Jan 2015 13:03:06 -0500 Subject: [PATCH] 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 --- src/mod/languages/mod_lua/Makefile.am | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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