2012-08-25 16:13:12 +02:00
|
|
|
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>
|
|
|
|
|
2013-02-19 03:07:33 +01:00
|
|
|
Index: b/Makefile.am.inc
|
2012-08-25 16:13:12 +02:00
|
|
|
===================================================================
|
2013-02-19 03:07:33 +01:00
|
|
|
--- a/Makefile.am.inc
|
|
|
|
+++ b/Makefile.am.inc
|
|
|
|
@@ -1,2 +1,2 @@
|
2013-05-09 09:14:24 +02:00
|
|
|
-AM_CFLAGS = -Wall -Werror -Wextra -Wwrite-strings -Wno-unused-parameter -std=gnu99 -D_GNU_SOURCE -D_REENTRANT
|
|
|
|
+AM_CFLAGS = -Wall -Werror -Wextra -Wwrite-strings -Wno-unused-parameter -std=gnu99 -D_GNU_SOURCE
|
2012-08-25 16:13:12 +02:00
|
|
|
|
|
|
|
Index: b/Makefile.in
|
|
|
|
===================================================================
|
|
|
|
--- a/Makefile.in
|
|
|
|
+++ b/Makefile.in
|
2013-05-09 09:14:24 +02:00
|
|
|
@@ -274,7 +274,7 @@
|
2012-08-25 16:13:12 +02:00
|
|
|
top_build_prefix = @top_build_prefix@
|
|
|
|
top_builddir = @top_builddir@
|
|
|
|
top_srcdir = @top_srcdir@
|
2013-05-09 09:14:24 +02:00
|
|
|
-AM_CFLAGS = -Wall -Werror -Wextra -Wwrite-strings -Wno-unused-parameter -std=gnu99 -D_GNU_SOURCE -D_REENTRANT
|
|
|
|
+AM_CFLAGS = -Wall -Werror -Wextra -Wwrite-strings -Wno-unused-parameter -std=gnu99 -D_GNU_SOURCE
|
2013-02-19 03:07:33 +01:00
|
|
|
EXTRA_DIST = README.html README-WIN32.html config.h.win32 doc json-c.vcproj
|
|
|
|
SUBDIRS = . tests
|
2013-05-09 09:14:24 +02:00
|
|
|
lib_LTLIBRARIES = libjson-c.la $(am__append_1)
|
|
|
|
Index: b/tests/Makefile.in
|
|
|
|
===================================================================
|
|
|
|
--- a/tests/Makefile.in
|
|
|
|
+++ b/tests/Makefile.in
|
|
|
|
@@ -228,7 +228,7 @@
|
|
|
|
top_build_prefix = @top_build_prefix@
|
|
|
|
top_builddir = @top_builddir@
|
|
|
|
top_srcdir = @top_srcdir@
|
|
|
|
-AM_CFLAGS = -Wall -Werror -Wextra -Wwrite-strings -Wno-unused-parameter -std=gnu99 -D_GNU_SOURCE -D_REENTRANT
|
|
|
|
+AM_CFLAGS = -Wall -Werror -Wextra -Wwrite-strings -Wno-unused-parameter -std=gnu99 -D_GNU_SOURCE
|
|
|
|
LIBJSON_LA = $(top_builddir)/libjson-c.la
|
|
|
|
test1_LDADD = $(LIBJSON_LA)
|
|
|
|
test1Formatted_LDADD = $(LIBJSON_LA)
|