0001-fuzz-Makefile.am-do-not-force-static.patch 1.4 KB

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