summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/libxcrypt
diff options
context:
space:
mode:
authorMartin Jansa <martin.jansa@gmail.com>2018-04-09 07:51:41 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-04-10 09:10:36 +0100
commit1b864151f18dca9432ef642de1b12897df61efd4 (patch)
tree4dc46090f145a3a0e4c29f3b7c0dcd5c98577120 /meta/recipes-core/libxcrypt
parent1ed050ae47d681d5892fb58f00e07767f8a06233 (diff)
downloadpoky-1b864151f18dca9432ef642de1b12897df61efd4.tar.gz
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++) ^ (From OE-Core rev: 2591741896a6a267ceca9519f21bd39b5b196559) Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/libxcrypt')
-rw-r--r--meta/recipes-core/libxcrypt/libxcrypt_4.0.0.bb2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-core/libxcrypt/libxcrypt_4.0.0.bb b/meta/recipes-core/libxcrypt/libxcrypt_4.0.0.bb
index b1982c1991..a1be4be7ef 100644
--- a/meta/recipes-core/libxcrypt/libxcrypt_4.0.0.bb
+++ b/meta/recipes-core/libxcrypt/libxcrypt_4.0.0.bb
@@ -20,7 +20,7 @@ FILES_${PN} = "${libdir}/libcrypt*.so.* ${libdir}/libcrypt-*.so ${libdir}/libowc
20 20
21S = "${WORKDIR}/git" 21S = "${WORKDIR}/git"
22 22
23BUILD_CPPFLAGS = "-I${STAGING_INCDIR_NATIVE}" 23BUILD_CPPFLAGS = "-I${STAGING_INCDIR_NATIVE} -std=gnu99"
24TARGET_CPPFLAGS = "-I${STAGING_DIR_TARGET}${includedir}" 24TARGET_CPPFLAGS = "-I${STAGING_DIR_TARGET}${includedir}"
25 25
26python () { 26python () {