open-plc-utils: new package
[buildroot-gz.git] / package / json-c / 0001-no-reentrant.patch
blobb8ae6bb249f937577938e4a2090a50e5b8f58659
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 ===================================================================
13 --- a/Makefile.am.inc
14 +++ b/Makefile.am.inc
15 @@ -1,2 +1,2 @@
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
19 Index: b/Makefile.in
20 ===================================================================
21 --- a/Makefile.in
22 +++ b/Makefile.in
23 @@ -274,7 +274,7 @@
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
30 SUBDIRS = . tests
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
36 @@ -228,7 +228,7 @@
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)