json-c-no-reentrant.patch 1.1 KB

12345678910111213141516171819202122232425262728293031
  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.inc
  8. ===================================================================
  9. --- a/Makefile.am.inc
  10. +++ b/Makefile.am.inc
  11. @@ -1,2 +1,2 @@
  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. Index: b/Makefile.in
  15. ===================================================================
  16. --- a/Makefile.in
  17. +++ b/Makefile.in
  18. @@ -263,7 +263,7 @@
  19. top_build_prefix = @top_build_prefix@
  20. top_builddir = @top_builddir@
  21. top_srcdir = @top_srcdir@
  22. -AM_CFLAGS = -Wall -Wwrite-strings -Werror -std=gnu99 -D_GNU_SOURCE -D_REENTRANT
  23. +AM_CFLAGS = -Wall -Wwrite-strings -Werror -std=gnu99 -D_GNU_SOURCE
  24. EXTRA_DIST = README.html README-WIN32.html config.h.win32 doc json-c.vcproj
  25. SUBDIRS = . tests
  26. lib_LTLIBRARIES = libjson.la