All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/1] fix compilation error when add libgloss under DEPENDS in recipe
@ 2021-07-28  7:56 nagesh shamnur
  0 siblings, 0 replies; 5+ messages in thread
From: nagesh shamnur @ 2021-07-28  7:56 UTC (permalink / raw)
  To: openembedded-core

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.shamnur@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.shamnur@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

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2021-07-28  8:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <CAA_JV5PZwZh8mMw0ZoVBuCA1570ki0gqSi_Du=UqXfNtuG6P4w@mail.gmail.com>
2021-07-28  7:53 ` [PATCH 1/1] fix compilation error when add libgloss under DEPENDS in recipe nagesh.shamnur
2021-07-28  8:17   ` [OE-core] " Michael Opdenacker
2021-07-28  8:37     ` nagesh shamnur
     [not found]   ` <1695E67E3139B070.18968@lists.openembedded.org>
2021-07-28  8:44     ` Michael Opdenacker
2021-07-28  7:56 nagesh shamnur

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.