[oe-commits] [openembedded-core] 28/29: libxcrypt: Fix the build with -Os

git at git.openembedded.org git at git.openembedded.org
Fri Aug 30 21:34:41 UTC 2019


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 2b1e42beef85fac7dabd09e3129d809a6f68341e
Author: Adrian Bunk <bunk at stusta.de>
AuthorDate: Thu Aug 29 13:09:41 2019 +0300

    libxcrypt: Fix the build with -Os
    
    | In file included from ../git/lib/alg-des.c:66:
    | ../git/lib/alg-des.c: In function '_crypt_des_set_key':
    | ../git/lib/byteorder.h:24:1: error: inlining failed in call to 'be32_to_cpu': call is unlikely and code size would grow [-Werror=inline]
    |  be32_to_cpu (const unsigned char *buf)
    |  ^~~~~~~~~~~
    | ../git/lib/alg-des.c:81:13: note: called from here
    |    rawkey1 = be32_to_cpu (&key[4]);
    |              ^~~~~~~~~~~~~~~~~~~~~
    
    Signed-off-by: Adrian Bunk <bunk at stusta.de>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/recipes-core/libxcrypt/libxcrypt_4.4.6.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-core/libxcrypt/libxcrypt_4.4.6.bb b/meta/recipes-core/libxcrypt/libxcrypt_4.4.6.bb
index 893f5e7..5270e58 100644
--- a/meta/recipes-core/libxcrypt/libxcrypt_4.4.6.bb
+++ b/meta/recipes-core/libxcrypt/libxcrypt_4.4.6.bb
@@ -26,8 +26,8 @@ FILES_${PN} = "${libdir}/libcrypt*.so.* \
 S = "${WORKDIR}/git"
 
 BUILD_CPPFLAGS = "-I${STAGING_INCDIR_NATIVE}"
-TARGET_CPPFLAGS = "-I${STAGING_DIR_TARGET}${includedir} -Wno-error=missing-attributes"
-CPPFLAGS_append_class-nativesdk = " -Wno-error=missing-attributes"
+TARGET_CPPFLAGS = "-I${STAGING_DIR_TARGET}${includedir} -Wno-error"
+CPPFLAGS_append_class-nativesdk = " -Wno-error"
 
 API = "--disable-obsolete-api"
 EXTRA_OECONF += "${API}"

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list