]> git.ozlabs.org Git - petitboot/commitdiff
test/parser: Add dependency on libpbcore.la
authorJeremy Kerr <jk@ozlabs.org>
Fri, 28 Nov 2014 03:44:03 +0000 (11:44 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Mon, 1 Dec 2014 03:53:23 +0000 (11:53 +0800)
Currently, build only a test object will fail:

  [jk@pablo obj]$ make ./test/parser/test-grub2-single

    CCLD     test/parser/test-grub2-single
  libtool: link: cannot find the library `lib/libpbcore.la' or unhandled argument `lib/libpbcore.la'

We're adding this to the link argument, but not as a dependency. This
change adds the dependency.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
test/parser/Makefile.am

index d24e720f8c2f742b7291401240434f4f894e7b24..eca4c0a6df9ee61368aa19dcb3b6ae250b20d1dc 100644 (file)
@@ -77,7 +77,7 @@ $(parser_TESTS): AM_CPPFLAGS += \
                -I$(top_srcdir)/discover \
                -DLOCAL_STATE_DIR='"$(localstatedir)"'
 $(parser_TESTS): LDADD += $@.embedded-config.o test/parser/libtest.ro $(core_lib)
                -I$(top_srcdir)/discover \
                -DLOCAL_STATE_DIR='"$(localstatedir)"'
 $(parser_TESTS): LDADD += $@.embedded-config.o test/parser/libtest.ro $(core_lib)
-$(parser_TESTS): %: %.embedded-config.o test/parser/libtest.ro
+$(parser_TESTS): %: %.embedded-config.o test/parser/libtest.ro $(core_lib)
 
 extract_config = $(srcdir)/test/parser/extract-config.awk
 
 
 extract_config = $(srcdir)/test/parser/extract-config.awk