[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openembedded-core
Subject:    [OE-core] [warrior-next 45/54] libxcrypt: Fix the build with -Os
From:       Armin Kuster <akuster808 () gmail ! com>
Date:       2019-09-30 4:47:40
Message-ID: 9a271cf62d7fc7f2f15c3287831383c2cb3b5dd5.1569818533.git.akuster808 () gmail ! com
[Download RAW message or body]

From: Adrian Bunk <bunk@stusta.de>

> 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@stusta.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
---
 meta/recipes-core/libxcrypt/libxcrypt.bb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/meta/recipes-core/libxcrypt/libxcrypt.bb \
b/meta/recipes-core/libxcrypt/libxcrypt.bb index 3b9af6d..a712e72 100644
--- a/meta/recipes-core/libxcrypt/libxcrypt.bb
+++ b/meta/recipes-core/libxcrypt/libxcrypt.bb
@@ -24,7 +24,7 @@ FILES_${PN} = "${libdir}/libcrypt*.so.* ${libdir}/libcrypt-*.so \
${libdir}/libowc  S = "${WORKDIR}/git"
 
 BUILD_CPPFLAGS = "-I${STAGING_INCDIR_NATIVE} -std=gnu99"
-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"
 
 BBCLASSEXTEND = "nativesdk"
-- 
2.7.4

-- 
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-core


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic