Sanitize libluaext linkage
authorPanu Matilainen <pmatilai@redhat.com>
Tue, 14 Oct 2008 12:36:23 +0000 (15:36 +0300)
committerPanu Matilainen <pmatilai@redhat.com>
Tue, 14 Oct 2008 12:36:23 +0000 (15:36 +0300)
configure.ac
rpmio/Makefile.am

index 51f2e1b..27f5ca0 100644 (file)
@@ -759,7 +759,7 @@ AS_IF([test "$with_lua" = yes],[
 AS_IF([test "$with_lua" = yes],[
   AC_DEFINE(WITH_LUA, 1, [Build with lua support?])
   WITH_LUA_INCLUDE="-I\${top_srcdir}/luaext"
-  WITH_LUA_LIB="-llua -lm \$(top_builddir)/luaext/libluaext.la"
+  WITH_LUA_LIB="-llua -lm
 ])
 AC_SUBST(WITH_LUA_LIB)
 AC_SUBST(WITH_LUA_INCLUDE)
index e2147cb..766e69a 100644 (file)
@@ -32,5 +32,9 @@ librpmio_la_LIBADD = \
        @WITH_LZMA_LIB@ \
        -lpthread
 
+if WITH_LUAEXT
+librpmio_la_LIBADD += $(top_builddir)/luaext/libluaext.la
+endif
+
 check_PROGRAMS =