]> code.ossystems Code Review - openembedded-core.git/commit
libxcrypt: add -std=gnu99 to BUILD_CPPFLAGS
authorMartin Jansa <martin.jansa@gmail.com>
Mon, 9 Apr 2018 07:51:41 +0000 (07:51 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 9 Apr 2018 11:11:50 +0000 (12:11 +0100)
commit2591741896a6a267ceca9519f21bd39b5b196559
tree7a6398da7f77fc04cf82024e590728a7237cec4b
parent815ccef2d5bef1e46c51916e694d0974aee394a9
libxcrypt: add -std=gnu99 to BUILD_CPPFLAGS

* add it to allow older distributions e.g. Ubuntu 14.04 with gcc 4.8
  to build this, otherwise it fails with:
  ../git/gen-des-tables.c: In function 'write_table_u8':
  ../git/gen-des-tables.c:307:3: error: 'for' loop initial declarations are only allowed in C99 mode
     for (size_t i = 0; i < m; i++)
     ^

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-core/libxcrypt/libxcrypt_4.0.0.bb