[oe-commits] Kai Kang : atftp: build with gcc 5.2
git at git.openembedded.org
git at git.openembedded.org
Thu Aug 27 13:43:35 UTC 2015
Module: meta-openembedded.git
Branch: master-next
Commit: 47ddd569ea37be7ac2a022613e4f1c544e66ce1c
URL: http://git.openembedded.org/?p=meta-openembedded.git&a=commit;h=47ddd569ea37be7ac2a022613e4f1c544e66ce1c
Author: Kai Kang <kai.kang at windriver.com>
Date: Mon Aug 24 23:31:55 2015 +0800
atftp: build with gcc 5.2
atftp fails to build with gcc 5.2:
git/tftp_def.h:54:14: warning: inline function 'Strncpy' declared but never defined
git/argz.c:44:8: error: redefinition of 'argz_next'
GCC 5 defaults to -std=gnu11 instead of -std=gnu89. The semantics of
inline function changes. Pass '-std=gnu89' to gcc to compile atftp.
Ref:
https://gcc.gnu.org/gcc-5/porting_to.html
Signed-off-by: Kai Kang <kai.kang at windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa at gmail.com>
---
meta-networking/recipes-daemons/atftp/atftp_git.bb | 2 ++
1 file changed, 2 insertions(+)
diff --git a/meta-networking/recipes-daemons/atftp/atftp_git.bb b/meta-networking/recipes-daemons/atftp/atftp_git.bb
index b53f637..0ece58f 100644
--- a/meta-networking/recipes-daemons/atftp/atftp_git.bb
+++ b/meta-networking/recipes-daemons/atftp/atftp_git.bb
@@ -32,6 +32,8 @@ USERADD_PACKAGES = "${PN}d"
USERADD_PARAM_${PN}d = "--system --no-create-home --shell /bin/false \
--user-group nobody"
+EXTRA_OEMAKE = "CFLAGS='${CFLAGS} -std=gnu89'"
+
do_install_append() {
install -d ${D}${sysconfdir}/init.d
install -m 0755 ${WORKDIR}/atftpd.init ${D}${sysconfdir}/init.d/atftpd
More information about the Openembedded-commits
mailing list