]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Fix of the previous fix
authorOndrej Zajicek (work) <santiago@crfreenet.org>
Thu, 18 May 2017 11:29:38 +0000 (13:29 +0200)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Thu, 18 May 2017 11:29:38 +0000 (13:29 +0200)
Avoid empty macro argument to avoid default behavior.

Makefile.in
configure.ac

index 25af140cbec96693694ef964174fffbc8af84e6b..e1f8d9c27e90395316d679eccf2135efbf86fd78 100644 (file)
@@ -130,9 +130,12 @@ $(objdir)/sysdep/paths.h: Makefile
 tests_targets_ok = $(addsuffix .ok,$(tests_targets))
 
 $(tests_targets): %: %.o $(tests_objs)
-       $(E)echo LD $(LDFLAGS) -o $@ $^ $(LIBS)
+       $(E)echo LD $(LDFLAGS) -o $@ $< "..." $(LIBS)
        $(Q)$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
 
+# Hack to avoid problems with tests linking everything
+$(tests_targets): LIBS += $(DAEMON_LIBS)
+
 $(tests_targets_ok): %.ok: %
        $(Q)$* 2>/dev/null && touch $*.ok
 
index 66e100df43412166c1c7232335db88cecc2d01f7..9e375762d1ef51448bf896e3977ab77bd59dc608 100644 (file)
@@ -222,8 +222,8 @@ DAEMON_LIBS=
 AC_SUBST(DAEMON_LIBS)
 
 if test "$enable_libssh" != no ; then
-  AC_CHECK_HEADER([libssh/libssh.h], [], [fail=yes], [ ])
-  AC_CHECK_LIB([ssh], [ssh_connect], [], [fail=yes])
+  AC_CHECK_HEADER([libssh/libssh.h], [true], [fail=yes], [ ])
+  AC_CHECK_LIB([ssh], [ssh_connect], [true], [fail=yes])
 
   if test "$fail" != yes ; then
     AC_DEFINE([HAVE_LIBSSH], [1], [Define to 1 if you have the `ssh' library (-lssh).])