Skip to content
This repository was archived by the owner on Dec 18, 2018. It is now read-only.

Commit a007fb2

Browse files
Anders Palmynezz
Anders Palm
authored andcommitted
Added libmath to the linker flags when compiling test for llua
When trying to compile the test-program for the library, libmath is not in the linker flags for some reason: ./configure --host=arm-linux-gnu --with-lua-inc=/path/lua-5.1.4/included --with-lua-lib=/path/lua-5.1.4/lib configure: WARNING: *** Lua (>=5.0) headers and/or librairies couldn't be found in your system. *** Try to install liblua, liblualib and liblua-dev with your software configure:11664: gcc -o conftest -g -O2 -I/path/lua-5.1.4/src -I/path/lua-5.1.4/src -L/path/lua-5.1.4/lib conftest.c -llua >&5 In function `Arith': lvm.c:(.text+0x458): undefined reference to `pow' Signed-off-by: Anders Palm <[email protected]> Signed-off-by: Petr Štetiar <[email protected]>
1 parent ca84466 commit a007fb2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

configure.in

+1
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ if test "x$enable_lua" = "xyes" ; then
105105
if test "x$ac_found_lua_header" = "xyes" -a "x$ac_found_liblua_header" = "xyes"; then
106106
LUA_CFLAGS="$CFLAGS"
107107
fi
108+
LDFLAGS="$LDFLAGS -lm"
108109
for l in "$lua_suffix" "" "51" "5.1" "50" "5.0" ; do
109110
AC_CHECK_LIB(lua$l,lua_call,ac_found_lua_lib="yes",ac_found_lua_lib="no")
110111
if test "x$ac_found_lua_lib" = "xyes" ; then

0 commit comments

Comments
 (0)