Dear Group,
    When include newlib and libgloss under DEPENDS in custom recipe,
 then newlib compilation is successful however libgloss compilation
 fails since it is unable to find the needed include path under
 recipe-sysroot/usr/include. This patch is to fix this issue by
 including recipe-sysroot/usr/include while configuring libgloss.

 Regards,
 Nagesh
From 773a10fbc2858f2397abcf64c60e64384a92f25f Mon Sep 17 00:00:00 2001
From: Nagesh <nagesh.sham...@huawei.com>
Date: Wed, 28 Jul 2021 13:09:50 +0530
Subject: [PATCH 1/1] fix compilation error when add libgloss under
DEPENDS in recipe

Signed-off-by: Nagesh <nagesh.sham...@huawei.com>
---
 meta/recipes-core/newlib/newlib.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/meta/recipes-core/newlib/newlib.inc b/meta/recipes-core/newlib/newlib.inc
index 0aba21fae7..edf4d1b52b 100644
--- a/meta/recipes-core/newlib/newlib.inc
+++ b/meta/recipes-core/newlib/newlib.inc
@@ -26,6 +26,7 @@ B = "${WORKDIR}/build"
 
 ## disable stdlib
 TARGET_CC_ARCH_append = " -nostdlib"
+CFLAGS_prepend = "-I${RECIPE_SYSROOT}/usr/include"
 
 EXTRA_OECONF = " \
                 --build=${BUILD_SYS}  \
-- 
2.25.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#154198): 
https://lists.openembedded.org/g/openembedded-core/message/154198
Mute This Topic: https://lists.openembedded.org/mt/84500632/21656
Group Owner: openembedded-core+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to