Adds linking order magic to fix compiling CUint and libfiu together

This commit is contained in:
Jonathan Bennett 2016-05-02 11:40:09 -05:00
parent cb6dcc3d0c
commit f0ca6fc4b2
2 changed files with 5 additions and 0 deletions

View File

@ -16,6 +16,9 @@ if WANT_C_UNIT_TESTS
fwknop_utests_CPPFLAGS = -I $(top_builddir)/lib -I $(top_builddir)/common $(GPGME_CFLAGS)
fwknop_utests_LDADD = $(top_builddir)/lib/libfko.la $(top_builddir)/common/libfko_util.a
fwknop_utests_LDFLAGS = -lcunit $(GPGME_LIBS)
if WANT_LIBFIU_SUPPORT
fwknop_utests_LDADD += -lfiu
endif
endif
fwknop_CPPFLAGS = -I $(top_srcdir)/lib -I $(top_srcdir)/common

View File

@ -157,6 +157,8 @@ if test "x$want_libfiu_support" = "xyes"; then
FKO_CHECK_COMPILER_ARG_LDFLAGS_ONLY([-lfiu])
fi
AM_CONDITIONAL([WANT_LIBFIU_SUPPORT], [test "$want_libfiu_support" = yes])
dnl Decide whether or not to enable C unit testing
dnl
want_c_unit_tests=no