1From cf1b20f3d881a1cfbf8cae1f615f45a5a4fbb3b4 Mon Sep 17 00:00:00 2001 2From: Fabrice Fontaine <fontaine.fabrice@gmail.com> 3Date: Wed, 22 Apr 2020 18:35:55 +0200 4Subject: [PATCH] fuzz/Makefile.am: do not force static 5 6Don't force static when linking corpus2arry to libtasn1 otherwise the 7build will fail if libtasn1 has been built only as a shared library: 8 9 CCLD corpus2array 10/home/fabrice/buildroot/output/host/lib/gcc/arm-buildroot-linux-musleabihf/8.4.0/../../../../arm-buildroot-linux-musleabihf/bin/ld: attempted static link of dynamic object `../lib/.libs/libtasn1.so' 11collect2: error: ld returned 1 exit status 12 13Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> 14[Upstream status: 15https://gitlab.com/gnutls/libtasn1/-/merge_requests/61] 16--- 17 fuzz/Makefile.am | 2 +- 18 1 file changed, 1 insertion(+), 1 deletion(-) 19 20diff --git a/fuzz/Makefile.am b/fuzz/Makefile.am 21index c6310d1..1fb7152 100644 22--- a/fuzz/Makefile.am 23+++ b/fuzz/Makefile.am 24@@ -26,7 +26,7 @@ AM_CFLAGS = $(WERROR_CFLAGS) $(WARN_CFLAGS) $(CODE_COVERAGE_CFLAGS) 25 AM_CPPFLAGS = -I$(top_builddir)/lib/includes -I$(top_srcdir)/lib/includes -I$(srcdir) \ 26 -I$(top_builddir)/lib/gl -I$(top_srcdir)/lib/gl -DSRCDIR=\"$(abs_srcdir)\" \ 27 $(CODE_COVERAGE_CPPFLAGS) 28-AM_LDFLAGS = -no-install -static 29+AM_LDFLAGS = -no-install 30 31 LDADD = ../lib/gl/libgnu.la ../lib/libtasn1.la $(FUZZ_LIBS) $(CODE_COVERAGE_LIBS) 32 33-- 342.25.1 35 36