From: Romain Naour <romain.naour@gmail.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] package/expedite: fix build issue with C89
Date: Fri, 21 Apr 2017 23:31:04 +0200 [thread overview]
Message-ID: <20170421213104.1477-1-romain.naour@gmail.com> (raw)
The code use for loop initial declarations which are only allowed in
C99 mode. Use the default compiler version (gnu99) used by gcc 5+ to
workaround some build issues with C99.
Fixes:
http://autobuild.buildroot.net/results/ed8/ed840755e8e486e48eab8c13a8bb5e9a448199ce
Signed-off-by: Romain Naour <romain.naour@gmail.com>
---
package/expedite/expedite.mk | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/package/expedite/expedite.mk b/package/expedite/expedite.mk
index d49e87a..9aa6a4a 100644
--- a/package/expedite/expedite.mk
+++ b/package/expedite/expedite.mk
@@ -15,6 +15,11 @@ EXPEDITE_DEPENDENCIES = host-efl host-pkgconf efl
# There is no configure script in the git tree.
EXPEDITE_AUTORECONF = YES
+# The code use for loop initial declarations which are only allowed in
+# C99 mode. Use the default compiler version (gnu99) used by gcc 5+ to
+# workaround some build issues with C99.
+EXPEDITE_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -std=gnu99"
+
ifeq ($(BR2_PACKAGE_EFL_X_XLIB),y)
EXPEDITE_CONF_OPTS += --with-x=$(STAGING_DIR) \
--x-includes=$(STAGING_DIR)/usr/include \
--
2.9.3
next reply other threads:[~2017-04-21 21:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-21 21:31 Romain Naour [this message]
2017-04-22 12:42 ` [Buildroot] [PATCH] package/expedite: fix build issue with C89 Thomas Petazzoni
2017-04-29 10:41 ` Romain Naour
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20170421213104.1477-1-romain.naour@gmail.com \
--to=romain.naour@gmail.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox