From: Jason Ish Date: Wed, 10 Feb 2021 20:29:23 +0000 (-0600) Subject: configure: put lua libs in LIBS not LDFLAGS X-Git-Tag: suricata-7.0.0-beta1~1799 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d648446c32246c409623340948d83bfa90cc9fef;p=thirdparty%2Fsuricata.git 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. --- 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")