nativesdk-gmp package contains host references in output packages.
Remove them.

Signed-off-by: Oleh Matiusha <[email protected]>
---
 meta/recipes-support/gmp/gmp_6.2.1.bb | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/meta/recipes-support/gmp/gmp_6.2.1.bb 
b/meta/recipes-support/gmp/gmp_6.2.1.bb
index 29055492c2..3128350e5f 100644
--- a/meta/recipes-support/gmp/gmp_6.2.1.bb
+++ b/meta/recipes-support/gmp/gmp_6.2.1.bb
@@ -38,6 +38,13 @@ do_install:prepend:class-target() {
          ${B}/gmp.h
 }
 
+do_install:prepend:class-nativesdk() {
+        sed -i \
+        -e "s|--sysroot=${STAGING_DIR_HOST}||g" \
+        -e "s|${DEBUG_PREFIX_MAP}||g" \
+         ${B}/gmp.h
+}
+
 SSTATE_SCAN_FILES += "gmp.h"
 
 # Doesn't compile in MIPS16e mode due to use of hand-written
-- 
2.33.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#196202): 
https://lists.openembedded.org/g/openembedded-core/message/196202
Mute This Topic: https://lists.openembedded.org/mt/104581927/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to