summaryrefslogtreecommitdiffstats
path: root/package/json-c/json-c-no-reentrant.patch
blob: a01181cfbb464927db6b24720b947c5829800737 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Do not pass -D_REENTRANT

This flag is not needed to build this library, and prevents to build
it with toolchains that don't have thread support.

Since the Makefile.in change is a one-liner, we also do it in the
patch to avoid having to autoreconfigure the package.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>

Index: b/Makefile.am
===================================================================
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,4 +1,4 @@
-AM_CFLAGS = -Wall -Wwrite-strings -Werror -std=gnu99 -D_GNU_SOURCE -D_REENTRANT
+AM_CFLAGS = -Wall -Wwrite-strings -Werror -std=gnu99 -D_GNU_SOURCE
 
 EXTRA_DIST = README.html README-WIN32.html config.h.win32 doc
 
Index: b/Makefile.in
===================================================================
--- a/Makefile.in
+++ b/Makefile.in
@@ -219,7 +219,7 @@
 top_build_prefix = @top_build_prefix@
 top_builddir = @top_builddir@
 top_srcdir = @top_srcdir@
-AM_CFLAGS = -Wall -Wwrite-strings -Werror -std=gnu99 -D_GNU_SOURCE -D_REENTRANT
+AM_CFLAGS = -Wall -Wwrite-strings -Werror -std=gnu99 -D_GNU_SOURCE
 EXTRA_DIST = README.html README-WIN32.html config.h.win32 doc
 lib_LTLIBRARIES = libjson.la
 pkgconfigdir = $(libdir)/pkgconfig