[OE-core] [PATCH 17/17] ifupdown: fix do_compile failed while GCCVERSION = "4.9%"
Hongxu Jia
hongxu.jia at windriver.com
Mon Mar 28 08:19:01 UTC 2016
In repo https://anonscm.debian.org/git/collab-maint/ifupdown.git
...
commit 4bfa7e5ae6175469d1049b6ace86c259814add16
Author: Guus Sliepen <guus at debian.org>
Date: Wed Jun 3 12:43:59 2015 +0200
Compile with -std=c99.
This prepares for the use of C99 features in the source code. With
-std=c99, some GNU extensions are disabled, and the standard library
headers are more strict in what they define, so we need to compile with
-D_DEFAULT_SOURCE.
...
We override CFLAGS in recipe, so we should add above to keep
sync with upstream.
Signed-off-by: Hongxu Jia <hongxu.jia at windriver.com>
---
meta/recipes-core/ifupdown/ifupdown_0.8.2.bb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/recipes-core/ifupdown/ifupdown_0.8.2.bb b/meta/recipes-core/ifupdown/ifupdown_0.8.2.bb
index 732b295..70ff10d 100644
--- a/meta/recipes-core/ifupdown/ifupdown_0.8.2.bb
+++ b/meta/recipes-core/ifupdown/ifupdown_0.8.2.bb
@@ -22,7 +22,7 @@ inherit update-rc.d update-alternatives
do_compile () {
chmod a+rx *.pl *.sh
- oe_runmake 'CC=${CC}' "CFLAGS=${CFLAGS} -Wall -W -D'IFUPDOWN_VERSION=\"${PV}\"'"
+ oe_runmake 'CC=${CC}' "CFLAGS=${CFLAGS} -std=c99 -D_DEFAULT_SOURCE -Wall -W -D'IFUPDOWN_VERSION=\"${PV}\"'"
}
do_install () {
--
1.9.1
More information about the Openembedded-core
mailing list