configure: put lua libs in LIBS not LDFLAGS

This is required to separate LIBS from LDFLAGS when outputting
a usable LIBS configuration line for users of the shared library.
pull/5866/head
Jason Ish 5 years ago
parent dbae17dbc0
commit d648446c32

@ -2029,7 +2029,7 @@
])
])
])
LDFLAGS="${LDFLAGS} ${LUA_LIBS}"
LIBS="${LIBS} ${LUA_LIBS}"
fi
if test "$LUA" = "no"; then
@ -2080,7 +2080,7 @@
LDFLAGS="${LDFLAGS} -L${with_libluajit_libraries}"
else
PKG_CHECK_MODULES([LUAJIT], [luajit])
LDFLAGS="${LDFLAGS} ${LUAJIT_LIBS}"
LIBS="${LIBS} ${LUAJIT_LIBS}"
fi
AC_CHECK_LIB(luajit-5.1, luaL_openlibs,, LUAJIT="no")

Loading…
Cancel
Save