unittests: Fix out-of-source build

Commit 4fd34e28ea unintentionally replaced top_builddir with
top_srcdir when refactoring flags variables in Makefile.am. This causes
out-of-source builds to fail.

Restore top_builddir in LDADD.

Also, remove a superfluous -L flag also referencing top_srcdir from
AM_CFLAGS while at it.

Signed-off-by: Michael Weiser <michael.weiser@gmx.de>

Closes #2027.
This commit is contained in:
Michael Weiser 2020-05-07 21:52:17 +02:00 committed by Frank Morgner
parent db41cd9ab1
commit a49a64ec79
1 changed files with 1 additions and 2 deletions

View File

@ -12,11 +12,10 @@ TESTS = asn1 simpletlv
noinst_HEADERS = torture.h
AM_CFLAGS = -I$(top_srcdir)/src/ \
-L$(top_srcdir)/src/libopensc/ \
$(CODE_COVERAGE_CFLAGS) \
$(CMOCKA_CFLAGS)
AM_CPPFLAGS =$(CODE_COVERAGE_CPPFLAGS)
LDADD = $(top_srcdir)/src/libopensc/libopensc.la \
LDADD = $(top_builddir)/src/libopensc/libopensc.la \
$(CODE_COVERAGE_LIBS) \
$(OPTIONAL_OPENSSL_LIBS) \
$(CMOCKA_LIBS)