json-c-no-reentrant.patch 1.2 KB

123456789101112131415161718192021222324252627282930313233
  1. Do not pass -D_REENTRANT
  2. This flag is not needed to build this library, and prevents to build
  3. it with toolchains that don't have thread support.
  4. Since the Makefile.in change is a one-liner, we also do it in the
  5. patch to avoid having to autoreconfigure the package.
  6. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  7. Index: b/Makefile.am
  8. ===================================================================
  9. --- a/Makefile.am
  10. +++ b/Makefile.am
  11. @@ -1,4 +1,4 @@
  12. -AM_CFLAGS = -Wall -Wwrite-strings -Werror -std=gnu99 -D_GNU_SOURCE -D_REENTRANT
  13. +AM_CFLAGS = -Wall -Wwrite-strings -Werror -std=gnu99 -D_GNU_SOURCE
  14. EXTRA_DIST = README.html README-WIN32.html config.h.win32 doc
  15. Index: b/Makefile.in
  16. ===================================================================
  17. --- a/Makefile.in
  18. +++ b/Makefile.in
  19. @@ -219,7 +219,7 @@
  20. top_build_prefix = @top_build_prefix@
  21. top_builddir = @top_builddir@
  22. top_srcdir = @top_srcdir@
  23. -AM_CFLAGS = -Wall -Wwrite-strings -Werror -std=gnu99 -D_GNU_SOURCE -D_REENTRANT
  24. +AM_CFLAGS = -Wall -Wwrite-strings -Werror -std=gnu99 -D_GNU_SOURCE
  25. EXTRA_DIST = README.html README-WIN32.html config.h.win32 doc
  26. lib_LTLIBRARIES = libjson.la
  27. pkgconfigdir = $(libdir)/pkgconfig