json-c-no-reentrant.patch 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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 -Werror -Wextra -Wwrite-strings -Wno-unused-parameter -std=gnu99 -D_GNU_SOURCE -D_REENTRANT
  13. +AM_CFLAGS = -Wall -Werror -Wextra -Wwrite-strings -Wno-unused-parameter -std=gnu99 -D_GNU_SOURCE
  14. Index: b/Makefile.in
  15. ===================================================================
  16. --- a/Makefile.in
  17. +++ b/Makefile.in
  18. @@ -274,7 +274,7 @@
  19. top_build_prefix = @top_build_prefix@
  20. top_builddir = @top_builddir@
  21. top_srcdir = @top_srcdir@
  22. -AM_CFLAGS = -Wall -Werror -Wextra -Wwrite-strings -Wno-unused-parameter -std=gnu99 -D_GNU_SOURCE -D_REENTRANT
  23. +AM_CFLAGS = -Wall -Werror -Wextra -Wwrite-strings -Wno-unused-parameter -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-c.la $(am__append_1)
  27. Index: b/tests/Makefile.in
  28. ===================================================================
  29. --- a/tests/Makefile.in
  30. +++ b/tests/Makefile.in
  31. @@ -228,7 +228,7 @@
  32. top_build_prefix = @top_build_prefix@
  33. top_builddir = @top_builddir@
  34. top_srcdir = @top_srcdir@
  35. -AM_CFLAGS = -Wall -Werror -Wextra -Wwrite-strings -Wno-unused-parameter -std=gnu99 -D_GNU_SOURCE -D_REENTRANT
  36. +AM_CFLAGS = -Wall -Werror -Wextra -Wwrite-strings -Wno-unused-parameter -std=gnu99 -D_GNU_SOURCE
  37. LIBJSON_LA = $(top_builddir)/libjson-c.la
  38. test1_LDADD = $(LIBJSON_LA)
  39. test1Formatted_LDADD = $(LIBJSON_LA)