From: Gert Doering Date: Mon, 29 Jun 2020 17:51:09 +0000 (+0200) Subject: Fix 'engine' unit test on FreeBSD (specifically 'not GNU make') X-Git-Tag: v2.5_beta1~96 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a168a9ac82c197725091f67fb5812d4b64050d8;p=thirdparty%2Fopenvpn.git Fix 'engine' unit test on FreeBSD (specifically 'not GNU make') The rules to generate $(builddir)/openssl.cnf from $(srcdir)/openssl.cnf.in only worked for GNU Make. BSD make needs the rules more explicit, and the target must not have a directory specification (fixes commit 542c69c37). Signed-off-by: Gert Doering Acked-by: James Bottomley Message-Id: <20200629175109.94276-1-gert@greenie.muc.de> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg20159.html Signed-off-by: Gert Doering --- diff --git a/tests/unit_tests/engine-key/Makefile.am b/tests/unit_tests/engine-key/Makefile.am index 0bfdfcd4d..246222514 100644 --- a/tests/unit_tests/engine-key/Makefile.am +++ b/tests/unit_tests/engine-key/Makefile.am @@ -21,8 +21,8 @@ CLEANFILES = \ log.txt \ $(conffiles) -$(builddir)/openssl.cnf: $(srcdir)/openssl.cnf.in - sed "s|ABSBUILDDIR|$(abs_builddir)|" < $< > $@ +openssl.cnf: $(srcdir)/openssl.cnf.in + sed "s|ABSBUILDDIR|$(abs_builddir)|" < $(srcdir)/openssl.cnf.in > $@ libtestengine_la_SOURCES = libtestengine.c libtestengine_la_LDFLAGS = @TEST_LDFLAGS@ -rpath /lib -shrext .so