From patchwork Sat Aug 25 14:13:12 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Petazzoni X-Patchwork-Id: 179970 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from hemlock.osuosl.org (hemlock.osuosl.org [140.211.166.133]) by ozlabs.org (Postfix) with ESMTP id D5E862C00FD for ; Sun, 26 Aug 2012 00:14:19 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id F0EB5A00DA; Sat, 25 Aug 2012 14:14:18 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id uPKe+RQXQBzf; Sat, 25 Aug 2012 14:14:17 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id E9E4EA00A1; Sat, 25 Aug 2012 14:14:16 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (whitealder.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 578208F753 for ; Sat, 25 Aug 2012 14:14:16 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 29C198D1A5 for ; Sat, 25 Aug 2012 14:14:16 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Mk85OA6v3KfY for ; Sat, 25 Aug 2012 14:14:14 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail.free-electrons.com (mail.free-electrons.com [88.190.12.23]) by whitealder.osuosl.org (Postfix) with ESMTP id 31D0C8D165 for ; Sat, 25 Aug 2012 14:14:14 +0000 (UTC) Received: by mail.free-electrons.com (Postfix, from userid 106) id 928EB155; Sat, 25 Aug 2012 16:14:13 +0200 (CEST) Received: from localhost (unknown [37.160.51.160]) by mail.free-electrons.com (Postfix) with ESMTPSA id 33C62D9 for ; Sat, 25 Aug 2012 16:13:48 +0200 (CEST) From: Thomas Petazzoni To: buildroot@uclibc.org Date: Sat, 25 Aug 2012 16:13:12 +0200 Message-Id: <1345903992-27961-2-git-send-email-thomas.petazzoni@free-electrons.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1345903992-27961-1-git-send-email-thomas.petazzoni@free-electrons.com> References: <1345903992-27961-1-git-send-email-thomas.petazzoni@free-electrons.com> Subject: [Buildroot] [PATCH] json-c: fix build when no thread support is available X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: buildroot-bounces@busybox.net Fixes http://autobuild.buildroot.org/results/1d9a2e44da3aa627265b03763ca324c609c0c61c/build-end.log. Signed-off-by: Thomas Petazzoni --- package/json-c/json-c-no-reentrant.patch | 33 ++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 package/json-c/json-c-no-reentrant.patch diff --git a/package/json-c/json-c-no-reentrant.patch b/package/json-c/json-c-no-reentrant.patch new file mode 100644 index 0000000..a01181c --- /dev/null +++ b/package/json-c/json-c-no-reentrant.patch @@ -0,0 +1,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 + +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