In repo https://anonscm.debian.org/git/collab-maint/ifupdown.git
...
commit 4bfa7e5ae6175469d1049b6ace86c259814add16
Author: Guus Sliepen <[email protected]>
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 <[email protected]>
---
 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

-- 
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

Reply via email to