From: Remi Gacogne Date: Wed, 18 Apr 2018 08:04:19 +0000 (+0200) Subject: rec: Add -rdynamic to C{,XX}FLAGS when we build with LuaJIT X-Git-Tag: rec-4.1.3~8^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F6514%2Fhead;p=thirdparty%2Fpdns.git rec: Add -rdynamic to C{,XX}FLAGS when we build with LuaJIT --- diff --git a/pdns/recursordist/configure.ac b/pdns/recursordist/configure.ac index cc489370c1..53f10aa267 100644 --- a/pdns/recursordist/configure.ac +++ b/pdns/recursordist/configure.ac @@ -102,6 +102,12 @@ AS_IF([test "x$with_luajit" = "xno"], [ AS_IF([test "x$LUAPC" = "x" -a "x$LUAJITPC" = "x"], [ AC_MSG_ERROR([Neither Lua nor LuaJIT found, Lua support is not optional]) ]) +AS_IF([test "x$LUAJITPC" != "x"], [ + # export all symbols to be able to use the Lua FFI interface + AC_MSG_NOTICE([Adding -rdynamic to export all symbols for the Lua FFI interface]) + CFLAGS="$CFLAGS -rdynamic" + CXXFLAGS="$CXXFLAGS -rdynamic" +]) PDNS_CHECK_LUA_HPP PDNS_ENABLE_VERBOSE_LOGGING