Skip to content

Commit 13ac2de

Browse files
committed
Build autls for direct src test checks
With TLS enabled, format_event_test links against the internal autls libtool archive. A direct make -C src/test check bypasses the top-level SUBDIRS traversal that normally visits autls before src/test, so make can see the link dependency but has no rule to build it when the archive is missing. Add a TLS-only rule in src/test/Makefile.am for the autls archive. The rule recurses into the configured autls build directory and builds libautls.la, preserving the existing top-level order while making the direct src/test check able to satisfy this dependency itself.
1 parent 26b5dce commit 13ac2de

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/test/Makefile.am

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,5 +56,9 @@ format_event_test_CFLAGS += -I${top_srcdir}/autls $(OPENSSL_CFLAGS)
5656
format_event_test_CFLAGS += -DAUDITD_EXE=\"$(sbindir)/auditd\"
5757
format_event_test_CFLAGS += -DAUDITD_LISTEN_TEST
5858
format_event_test_LDADD += ${top_builddir}/autls/libautls.la
59+
60+
# Direct src/test builds bypass the top-level SUBDIRS ordering.
61+
${top_builddir}/autls/libautls.la:
62+
$(MAKE) $(AM_MAKEFLAGS) -C ${top_builddir}/autls libautls.la
5963
endif
6064
endif

0 commit comments

Comments
 (0)