From d648446c32246c409623340948d83bfa90cc9fef Mon Sep 17 00:00:00 2001 From: Jason Ish Date: Wed, 10 Feb 2021 14:29:23 -0600 Subject: [PATCH] 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. --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 2caccc4cfd..6c077785c9 100644 --- a/configure.ac +++ b/configure.ac @@ -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")