1 Do not pass -D_REENTRANT
3 This flag is not needed to build this library, and prevents to build
4 it with toolchains that don't have thread support.
6 Since the Makefile.in change is a one-liner, we also do it in the
7 patch to avoid having to autoreconfigure the package.
9 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
11 Index: b/Makefile.am.inc
12 ===================================================================
16 -AM_CFLAGS = -Wall -Werror -Wextra -Wwrite-strings -Wno-unused-parameter -std=gnu99 -D_GNU_SOURCE -D_REENTRANT
17 +AM_CFLAGS = -Wall -Werror -Wextra -Wwrite-strings -Wno-unused-parameter -std=gnu99 -D_GNU_SOURCE
20 ===================================================================
24 top_build_prefix = @top_build_prefix@
25 top_builddir = @top_builddir@
26 top_srcdir = @top_srcdir@
27 -AM_CFLAGS = -Wall -Werror -Wextra -Wwrite-strings -Wno-unused-parameter -std=gnu99 -D_GNU_SOURCE -D_REENTRANT
28 +AM_CFLAGS = -Wall -Werror -Wextra -Wwrite-strings -Wno-unused-parameter -std=gnu99 -D_GNU_SOURCE
29 EXTRA_DIST = README.html README-WIN32.html config.h.win32 doc json-c.vcproj
31 lib_LTLIBRARIES = libjson-c.la $(am__append_1)
32 Index: b/tests/Makefile.in
33 ===================================================================
34 --- a/tests/Makefile.in
35 +++ b/tests/Makefile.in
37 top_build_prefix = @top_build_prefix@
38 top_builddir = @top_builddir@
39 top_srcdir = @top_srcdir@
40 -AM_CFLAGS = -Wall -Werror -Wextra -Wwrite-strings -Wno-unused-parameter -std=gnu99 -D_GNU_SOURCE -D_REENTRANT
41 +AM_CFLAGS = -Wall -Werror -Wextra -Wwrite-strings -Wno-unused-parameter -std=gnu99 -D_GNU_SOURCE
42 LIBJSON_LA = $(top_builddir)/libjson-c.la
43 test1_LDADD = $(LIBJSON_LA)
44 test1Formatted_LDADD = $(LIBJSON_LA)