From 92e552ecc2d6273a8e14295e7ef255b735269fda Mon Sep 17 00:00:00 2001 From: Remi Gacogne Date: Wed, 18 Apr 2018 10:04:19 +0200 Subject: [PATCH] rec: Add -rdynamic to C{,XX}FLAGS when we build with LuaJIT --- pdns/recursordist/configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) 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 -- 2.47.2