]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
configure: put lua libs in LIBS not LDFLAGS
authorJason Ish <jason.ish@oisf.net>
Wed, 10 Feb 2021 20:29:23 +0000 (14:29 -0600)
committerJason Ish <jason.ish@oisf.net>
Tue, 16 Feb 2021 17:43:26 +0000 (11:43 -0600)
This is required to separate LIBS from LDFLAGS when outputting
a usable LIBS configuration line for users of the shared library.

configure.ac

index 2caccc4cfd7f29b5204b306c533d2cc0b0cef2e5..6c077785c9398ec01f75551852b5c58e01e73fe8 100644 (file)
                         ])
                     ])
                 ])
-                LDFLAGS="${LDFLAGS} ${LUA_LIBS}"
+                LIBS="${LIBS} ${LUA_LIBS}"
             fi
 
             if test "$LUA" = "no"; then
                 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")