fixed passing LIB_FUZZING_ENGINE

This commit is contained in:
Frank Morgner 2019-08-19 16:15:05 +02:00
parent 426772298a
commit 8f838bc1e0
2 changed files with 5 additions and 2 deletions

View File

@ -134,11 +134,13 @@ AM_CONDITIONAL([HAVE_UNKNOWN_WARNING_OPTION], [test "${have_unknown_warning_opti
AC_ARG_ENABLE(
[fuzzing],
[AS_HELP_STRING([--enable-fuzzing],[enable compile of fuzzing tests @<:@disabled@:>@, note that CFLAGS should be set accoringly, e.g. to something like "-fsanitize=address,fuzzer"])],
[AS_HELP_STRING([--enable-fuzzing],[enable compile of fuzzing tests @<:@disabled@:>@, note that CFLAGS and FUZZING_LIBS should be set accoringly, e.g. to something like CFLAGS="-fsanitize=address,fuzzer" FUZZING_LIBS="-fsanitize=fuzzer"])],
,
[enable_fuzzing="no"]
)
AC_ARG_VAR([FUZZING_LIBS], [linker flags for fuzzing])
AC_ARG_ENABLE(
[strict],
[AS_HELP_STRING([--disable-strict],[disable strict compile mode @<:@enabled@:>@])],
@ -1180,6 +1182,7 @@ PCSC_CFLAGS: ${PCSC_CFLAGS}
CRYPTOTOKENKIT_CFLAGS: ${CRYPTOTOKENKIT_CFLAGS}
GIO2_CFLAGS: ${GIO2_CFLAGS}
GIO2_LIBS: ${GIO2_LIBS}
FUZZING_LIBS: ${FUZZING_LIBS}
EOF

View File

@ -1,6 +1,6 @@
AM_CPPFLAGS = -I$(top_srcdir)/src
AM_CFLAGS = -g -O0 $(OPTIONAL_OPENSSL_CFLAGS) $(OPTIONAL_READLINE_CFLAGS) $(PTHREAD_CFLAGS)
LIBS = \
LIBS = $(FUZZING_LIBS) \
$(top_builddir)/src/libopensc/libopensc.la \
$(top_builddir)/src/common/libscdl.la \
$(top_builddir)/src/common/libcompat.la