Skip to contentSkip to conversation

gcc: Allow using libc++

PATCH In review Daniel McGregor 2 participants 6 messages Mar 28, 2024 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gcc: Allow using libc++

With the addition of the C++ runtime setting added recently, allow gcc to use libc++ as its runtime. There's some minor fixes still required, such as allowing setting the unwinder library. But this allows for testing libc++ with gcc.

---
 meta/recipes-devtools/gcc/gcc-13.2.inc           | 6 ------
 meta/recipes-devtools/gcc/gcc-cross-canadian.inc | 1 +
 meta/recipes-devtools/gcc/gcc-cross.inc          | 1 +
 meta/recipes-devtools/gcc/gcc-target.inc         | 1 +
 4 files changed, 3 insertions(+), 6 deletions(-)
meta/recipes-devtools/gcc/gcc-13.2.inc +0 -6
index 603377a49a2..a19ceadeaae 100644
@@ -109,11 +109,5 @@ EXTRA_OECONF_INITIAL = "\
     --disable-libssp \
 "
 
-EXTRA_OECONF_PATHS = "\
-    --with-gxx-include-dir=/not/exist{target_includedir}/c++/${BINV} \
-    --with-sysroot=/not/exist \
-    --with-build-sysroot=${STAGING_DIR_TARGET} \
-"
-
 CVE_STATUS[CVE-2021-37322] = "cpe-incorrect: Is a binutils 2.26 issue, not gcc"
 CVE_STATUS[CVE-2023-4039] = "fixed-version: Fixed via CVE-2023-4039.patch included here. Set the status explictly to deal with all recipes that share the gcc-source"
meta/recipes-devtools/gcc/gcc-cross-canadian.inc +1 -0
index ec87b462193..7c4233c2115 100644
@@ -12,6 +12,7 @@ require gcc-configure-common.inc
 EXTRA_OECONF += "--with-plugin-ld=ld"
 EXTRA_OECONF_PATHS = "\
     --with-gxx-include-dir=/not/exist${target_includedir}/c++/${BINV} \
+    --with-gxx-libcxx-include-dir=/not/exist${target_includedir}/c++/v1 \
     --with-build-time-tools=${STAGING_DIR_NATIVE}${prefix_native}/${TARGET_SYS}/bin \
     --with-sysroot=/not/exist \
     --with-build-sysroot=${STAGING_DIR_TARGET} \
meta/recipes-devtools/gcc/gcc-cross.inc +1 -0
index a540fb2434a..5b0ca15d476 100644
@@ -37,6 +37,7 @@ EXTRA_OECONF:remove:libc-newlib = "--enable-threads=posix"
 
 EXTRA_OECONF_PATHS = "\
     --with-gxx-include-dir=/not/exist${target_includedir}/c++/${BINV} \
+    --with-gxx-libcxx-include-dir=/not/exist${target_includedir}/c++/v1 \
     --with-sysroot=/not/exist \
     --with-build-sysroot=${STAGING_DIR_TARGET} \
 "
meta/recipes-devtools/gcc/gcc-target.inc +1 -0
index 7dac3ef422c..82da5ef82be 100644
@@ -2,6 +2,7 @@ GCCMULTILIB = "--enable-multilib"
 require gcc-configure-common.inc
 
 EXTRA_OECONF_PATHS = "\
+    --with-gxx-libcxx-include-dir=${target_includedir}/c++/v1 \
     --with-build-sysroot=${STAGING_DIR_TARGET} \
 "
 
Signature · 1 line
2.41.0
#1 lore raw
Quoted 19 lines · Dan McGregor

With the addition of the C++ runtime setting added recently, allow gcc to use libc++ as its runtime. There's some minor fixes still required, such as allowing setting the unwinder library. But this allows for testing libc++ with gcc.

---
 meta/recipes-devtools/gcc/gcc-13.2.inc           | 6 ------
 meta/recipes-devtools/gcc/gcc-cross-canadian.inc | 1 +
 meta/recipes-devtools/gcc/gcc-cross.inc          | 1 +
 meta/recipes-devtools/gcc/gcc-target.inc         | 1 +
 4 files changed, 3 insertions(+), 6 deletions(-)
meta/recipes-devtools/gcc/gcc-13.2.inc +0 -0
index 603377a49a2..a19ceadeaae 100644

meta/recipes-devtools/gcc/gcc-13.2.inc EXTRA_OECONF_INITIAL = "\ · line 116

Quoted 8 lines
meta/recipes-devtools/gcc/gcc-13.2.inc +0 -5
@@ -109,11 +109,5 @@ EXTRA_OECONF_INITIAL = "\
     --disable-libssp \
 "
 
-EXTRA_OECONF_PATHS = "\
-    --with-gxx-include-dir=/not/exist{target_includedir}/c++/${BINV} \
-    --with-sysroot=/not/exist \
-    --with-build-sysroot=${STAGING_DIR_TARGET} \
-"

this include is used by almost all of gcc based recipes including runtime libraries
if we remove it here, then I guess they will be impacted in some way. e.g. libgcc
Can you check what the effect is ?

Quoted 51 lines
meta/recipes-devtools/gcc/gcc-13.2.inc +0 -1
-
 CVE_STATUS[CVE-2021-37322] = "cpe-incorrect: Is a binutils 2.26 issue, not gcc"
 CVE_STATUS[CVE-2023-4039] = "fixed-version: Fixed via CVE-2023-4039.patch included here. Set the status explictly to deal with all recipes that share the gcc-source"
meta/recipes-devtools/gcc/gcc-cross-canadian.inc +1 -0
index ec87b462193..7c4233c2115 100644
@@ -12,6 +12,7 @@ require gcc-configure-common.inc
 EXTRA_OECONF += "--with-plugin-ld=ld"
 EXTRA_OECONF_PATHS = "\
     --with-gxx-include-dir=/not/exist${target_includedir}/c++/${BINV} \
+    --with-gxx-libcxx-include-dir=/not/exist${target_includedir}/c++/v1 \
     --with-build-time-tools=${STAGING_DIR_NATIVE}${prefix_native}/${TARGET_SYS}/bin \
     --with-sysroot=/not/exist \
     --with-build-sysroot=${STAGING_DIR_TARGET} \
meta/recipes-devtools/gcc/gcc-cross.inc +1 -0
index a540fb2434a..5b0ca15d476 100644
@@ -37,6 +37,7 @@ EXTRA_OECONF:remove:libc-newlib = "--enable-threads=posix"
 
 EXTRA_OECONF_PATHS = "\
     --with-gxx-include-dir=/not/exist${target_includedir}/c++/${BINV} \
+    --with-gxx-libcxx-include-dir=/not/exist${target_includedir}/c++/v1 \
     --with-sysroot=/not/exist \
     --with-build-sysroot=${STAGING_DIR_TARGET} \
 "
meta/recipes-devtools/gcc/gcc-target.inc +1 -1
index 7dac3ef422c..82da5ef82be 100644
@@ -2,6 +2,7 @@ GCCMULTILIB = "--enable-multilib"
 require gcc-configure-common.inc
 
 EXTRA_OECONF_PATHS = "\
+    --with-gxx-libcxx-include-dir=${target_includedir}/c++/v1 \
     --with-build-sysroot=${STAGING_DIR_TARGET} \
 "
 
--

2.41.0

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

#2 lore raw
Quoted 24 lines · Khem Raj
Quoted 22 lines · Dan McGregor

With the addition of the C++ runtime setting added recently, allow gcc to use libc++ as its runtime. There's some minor fixes still required, such as allowing setting the unwinder library. But this allows for testing libc++ with gcc.

---
 meta/recipes-devtools/gcc/gcc-13.2.inc           | 6 ------
 meta/recipes-devtools/gcc/gcc-cross-canadian.inc | 1 +
 meta/recipes-devtools/gcc/gcc-cross.inc          | 1 +
 meta/recipes-devtools/gcc/gcc-target.inc         | 1 +
 4 files changed, 3 insertions(+), 6 deletions(-)
meta/recipes-devtools/gcc/gcc-13.2.inc +0 -0
index 603377a49a2..a19ceadeaae 100644
@@ -109,11 +109,5 @@ EXTRA_OECONF_INITIAL = "\
     --disable-libssp \
 "
 
Quoted 11 lines

meta/recipes-devtools/gcc/gcc-13.2.inc EXTRA_OECONF_INITIAL = "\ · line 116

Quoted 5 lines
meta/recipes-devtools/gcc/gcc-13.2.inc +0 -5
-EXTRA_OECONF_PATHS = "\
-    --with-gxx-include-dir=/not/exist{target_includedir}/c++/${BINV} \
-    --with-sysroot=/not/exist \
-    --with-build-sysroot=${STAGING_DIR_TARGET} \
-"

this include is used by almost all of gcc based recipes including runtime libraries
if we remove it here, then I guess they will be impacted in some way. e.g. libgcc
Can you check what the effect is ?

All of the recipes I looked at explicitly set this value independently, either in the recipe, or another common(ish) include file.
I thought about leaving this in, but it threw me off when I started this, so I figured it's best to remove it so others don't hit the same issue.

Quoted 52 lines
Quoted 52 lines
meta/recipes-devtools/gcc/gcc-13.2.inc +0 -1
-
 CVE_STATUS[CVE-2021-37322] = "cpe-incorrect: Is a binutils 2.26 issue, not gcc"
 CVE_STATUS[CVE-2023-4039] = "fixed-version: Fixed via CVE-2023-4039.patch included here. Set the status explictly to deal with all recipes that share the gcc-source"
meta/recipes-devtools/gcc/gcc-cross-canadian.inc +1 -0
index ec87b462193..7c4233c2115 100644
@@ -12,6 +12,7 @@ require gcc-configure-common.inc
 EXTRA_OECONF += "--with-plugin-ld=ld"
 EXTRA_OECONF_PATHS = "\
     --with-gxx-include-dir=/not/exist${target_includedir}/c++/${BINV} \
+    --with-gxx-libcxx-include-dir=/not/exist${target_includedir}/c++/v1 \
     --with-build-time-tools=${STAGING_DIR_NATIVE}${prefix_native}/${TARGET_SYS}/bin \
     --with-sysroot=/not/exist \
     --with-build-sysroot=${STAGING_DIR_TARGET} \
meta/recipes-devtools/gcc/gcc-cross.inc +1 -0
index a540fb2434a..5b0ca15d476 100644
@@ -37,6 +37,7 @@ EXTRA_OECONF:remove:libc-newlib = "--enable-threads=posix"
 
 EXTRA_OECONF_PATHS = "\
     --with-gxx-include-dir=/not/exist${target_includedir}/c++/${BINV} \
+    --with-gxx-libcxx-include-dir=/not/exist${target_includedir}/c++/v1 \
     --with-sysroot=/not/exist \
     --with-build-sysroot=${STAGING_DIR_TARGET} \
 "
meta/recipes-devtools/gcc/gcc-target.inc +1 -1
index 7dac3ef422c..82da5ef82be 100644
@@ -2,6 +2,7 @@ GCCMULTILIB = "--enable-multilib"
 require gcc-configure-common.inc
 
 EXTRA_OECONF_PATHS = "\
+    --with-gxx-libcxx-include-dir=${target_includedir}/c++/v1 \
     --with-build-sysroot=${STAGING_DIR_TARGET} \
 "
 
--

2.41.0

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

#3 lore raw
Quoted 38 lines · Dan McGregor
Quoted 24 lines · Khem Raj
Quoted 22 lines · Dan McGregor

With the addition of the C++ runtime setting added recently, allow gcc to use libc++ as its runtime. There's some minor fixes still required, such as allowing setting the unwinder library. But this allows for testing libc++ with gcc.

---
 meta/recipes-devtools/gcc/gcc-13.2.inc           | 6 ------
 meta/recipes-devtools/gcc/gcc-cross-canadian.inc | 1 +
 meta/recipes-devtools/gcc/gcc-cross.inc          | 1 +
 meta/recipes-devtools/gcc/gcc-target.inc         | 1 +
 4 files changed, 3 insertions(+), 6 deletions(-)
meta/recipes-devtools/gcc/gcc-13.2.inc +0 -0
index 603377a49a2..a19ceadeaae 100644
@@ -109,11 +109,5 @@ EXTRA_OECONF_INITIAL = "\
     --disable-libssp \
 "
 
Quoted 11 lines

meta/recipes-devtools/gcc/gcc-13.2.inc EXTRA_OECONF_INITIAL = "\ · line 116

Quoted 5 lines
meta/recipes-devtools/gcc/gcc-13.2.inc +0 -5
-EXTRA_OECONF_PATHS = "\
-    --with-gxx-include-dir=/not/exist{target_includedir}/c++/${BINV} \
-    --with-sysroot=/not/exist \
-    --with-build-sysroot=${STAGING_DIR_TARGET} \
-"

this include is used by almost all of gcc based recipes including runtime libraries
if we remove it here, then I guess they will be impacted in some way. e.g. libgcc
Can you check what the effect is ?

Quoted 6 lines

All of the recipes I looked at explicitly set this value independently, either in the recipe, or another common(ish) include file.
I thought about leaving this in, but it threw me off when I started this, so I figured it's best to remove it so others don't hit the same issue.

If it is redundant then perhaps its ok, I would suggest to do nativesdk builds and mingw builds with this change.

Quoted 53 lines
Quoted 53 lines
Quoted 53 lines
meta/recipes-devtools/gcc/gcc-13.2.inc +0 -1
-
 CVE_STATUS[CVE-2021-37322] = "cpe-incorrect: Is a binutils 2.26 issue, not gcc"
 CVE_STATUS[CVE-2023-4039] = "fixed-version: Fixed via CVE-2023-4039.patch included here. Set the status explictly to deal with all recipes that share the gcc-source"
meta/recipes-devtools/gcc/gcc-cross-canadian.inc +1 -0
index ec87b462193..7c4233c2115 100644
@@ -12,6 +12,7 @@ require gcc-configure-common.inc
 EXTRA_OECONF += "--with-plugin-ld=ld"
 EXTRA_OECONF_PATHS = "\
     --with-gxx-include-dir=/not/exist${target_includedir}/c++/${BINV} \
+    --with-gxx-libcxx-include-dir=/not/exist${target_includedir}/c++/v1 \
     --with-build-time-tools=${STAGING_DIR_NATIVE}${prefix_native}/${TARGET_SYS}/bin \
     --with-sysroot=/not/exist \
     --with-build-sysroot=${STAGING_DIR_TARGET} \
meta/recipes-devtools/gcc/gcc-cross.inc +1 -0
index a540fb2434a..5b0ca15d476 100644
@@ -37,6 +37,7 @@ EXTRA_OECONF:remove:libc-newlib = "--enable-threads=posix"
 
 EXTRA_OECONF_PATHS = "\
     --with-gxx-include-dir=/not/exist${target_includedir}/c++/${BINV} \
+    --with-gxx-libcxx-include-dir=/not/exist${target_includedir}/c++/v1 \
     --with-sysroot=/not/exist \
     --with-build-sysroot=${STAGING_DIR_TARGET} \
 "
meta/recipes-devtools/gcc/gcc-target.inc +1 -1
index 7dac3ef422c..82da5ef82be 100644
@@ -2,6 +2,7 @@ GCCMULTILIB = "--enable-multilib"
 require gcc-configure-common.inc
 
 EXTRA_OECONF_PATHS = "\
+    --with-gxx-libcxx-include-dir=${target_includedir}/c++/v1 \
     --with-build-sysroot=${STAGING_DIR_TARGET} \
 "
 
--

2.41.0

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

#4 lore raw
Quoted 47 lines · Khem Raj
Quoted 38 lines · Dan McGregor
Quoted 24 lines · Khem Raj
Quoted 22 lines · Dan McGregor

With the addition of the C++ runtime setting added recently, allow gcc to use libc++ as its runtime. There's some minor fixes still required, such as allowing setting the unwinder library. But this allows for testing libc++ with gcc.

---
 meta/recipes-devtools/gcc/gcc-13.2.inc           | 6 ------
 meta/recipes-devtools/gcc/gcc-cross-canadian.inc | 1 +
 meta/recipes-devtools/gcc/gcc-cross.inc          | 1 +
 meta/recipes-devtools/gcc/gcc-target.inc         | 1 +
 4 files changed, 3 insertions(+), 6 deletions(-)
meta/recipes-devtools/gcc/gcc-13.2.inc +0 -0
index 603377a49a2..a19ceadeaae 100644
@@ -109,11 +109,5 @@ EXTRA_OECONF_INITIAL = "\
     --disable-libssp \
 "
 
Quoted 11 lines

meta/recipes-devtools/gcc/gcc-13.2.inc EXTRA_OECONF_INITIAL = "\ · line 116

Quoted 5 lines
meta/recipes-devtools/gcc/gcc-13.2.inc +0 -5
-EXTRA_OECONF_PATHS = "\
-    --with-gxx-include-dir=/not/exist{target_includedir}/c++/${BINV} \
-    --with-sysroot=/not/exist \
-    --with-build-sysroot=${STAGING_DIR_TARGET} \
-"

this include is used by almost all of gcc based recipes including runtime libraries
if we remove it here, then I guess they will be impacted in some way. e.g. libgcc
Can you check what the effect is ?

Quoted 6 lines

All of the recipes I looked at explicitly set this value independently, either in the recipe, or another common(ish) include file.
I thought about leaving this in, but it threw me off when I started this, so I figured it's best to remove it so others don't hit the same issue.

Quoted 2 lines

If it is redundant then perhaps its ok, I would suggest to do nativesdk builds and mingw builds with this change.

Ah, yes. I didn't try mingw. I did try nativesdk, though.

Quoted 54 lines
Quoted 54 lines
Quoted 54 lines
Quoted 54 lines
meta/recipes-devtools/gcc/gcc-13.2.inc +0 -1
-
 CVE_STATUS[CVE-2021-37322] = "cpe-incorrect: Is a binutils 2.26 issue, not gcc"
 CVE_STATUS[CVE-2023-4039] = "fixed-version: Fixed via CVE-2023-4039.patch included here. Set the status explictly to deal with all recipes that share the gcc-source"
meta/recipes-devtools/gcc/gcc-cross-canadian.inc +1 -0
index ec87b462193..7c4233c2115 100644
@@ -12,6 +12,7 @@ require gcc-configure-common.inc
 EXTRA_OECONF += "--with-plugin-ld=ld"
 EXTRA_OECONF_PATHS = "\
     --with-gxx-include-dir=/not/exist${target_includedir}/c++/${BINV} \
+    --with-gxx-libcxx-include-dir=/not/exist${target_includedir}/c++/v1 \
     --with-build-time-tools=${STAGING_DIR_NATIVE}${prefix_native}/${TARGET_SYS}/bin \
     --with-sysroot=/not/exist \
     --with-build-sysroot=${STAGING_DIR_TARGET} \
meta/recipes-devtools/gcc/gcc-cross.inc +1 -0
index a540fb2434a..5b0ca15d476 100644
@@ -37,6 +37,7 @@ EXTRA_OECONF:remove:libc-newlib = "--enable-threads=posix"
 
 EXTRA_OECONF_PATHS = "\
     --with-gxx-include-dir=/not/exist${target_includedir}/c++/${BINV} \
+    --with-gxx-libcxx-include-dir=/not/exist${target_includedir}/c++/v1 \
     --with-sysroot=/not/exist \
     --with-build-sysroot=${STAGING_DIR_TARGET} \
 "
meta/recipes-devtools/gcc/gcc-target.inc +1 -1
index 7dac3ef422c..82da5ef82be 100644
@@ -2,6 +2,7 @@ GCCMULTILIB = "--enable-multilib"
 require gcc-configure-common.inc
 
 EXTRA_OECONF_PATHS = "\
+    --with-gxx-libcxx-include-dir=${target_includedir}/c++/v1 \
     --with-build-sysroot=${STAGING_DIR_TARGET} \
 "
 
--

2.41.0

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

A message that is not in the archive (sent off-list or not yet received): [email protected]

#6 lore raw
Quoted 49 lines · Dan McGregor via lists.openembedded.org
Quoted 47 lines · Khem Raj
Quoted 44 lines · Dan McGregor
Quoted 24 lines · Khem Raj
Quoted 22 lines · Dan McGregor

With the addition of the C++ runtime setting added recently, allow gcc to use libc++ as its runtime. There's some minor fixes still required, such as allowing setting the unwinder library. But this allows for testing libc++ with gcc.

---
 meta/recipes-devtools/gcc/gcc-13.2.inc           | 6 ------
 meta/recipes-devtools/gcc/gcc-cross-canadian.inc | 1 +
 meta/recipes-devtools/gcc/gcc-cross.inc          | 1 +
 meta/recipes-devtools/gcc/gcc-target.inc         | 1 +
 4 files changed, 3 insertions(+), 6 deletions(-)
meta/recipes-devtools/gcc/gcc-13.2.inc +0 -0
index 603377a49a2..a19ceadeaae 100644
@@ -109,11 +109,5 @@ EXTRA_OECONF_INITIAL = "\
     --disable-libssp \
 "
 
Quoted 11 lines

meta/recipes-devtools/gcc/gcc-13.2.inc EXTRA_OECONF_INITIAL = "\ · line 116

Quoted 5 lines
meta/recipes-devtools/gcc/gcc-13.2.inc +0 -5
-EXTRA_OECONF_PATHS = "\
-    --with-gxx-include-dir=/not/exist{target_includedir}/c++/${BINV} \
-    --with-sysroot=/not/exist \
-    --with-build-sysroot=${STAGING_DIR_TARGET} \
-"

this include is used by almost all of gcc based recipes including runtime libraries
if we remove it here, then I guess they will be impacted in some way. e.g. libgcc
Can you check what the effect is ?

All of the recipes I looked at explicitly set this value independently, either in the recipe, or another common(ish) include file.
I thought about leaving this in, but it threw me off when I started this, so I figured it's best to remove it so others don't hit the same issue.

Quoted 4 lines
Quoted 2 lines

If it is redundant then perhaps its ok, I would suggest to do nativesdk builds and mingw builds with this change.

Ah, yes. I didn't try mingw. I did try nativesdk, though.

Okay, so I tested this out with mingw and nativesdk again. libgcc, libgcc-initial, nativesdk-libgcc-initial, and nativesdk-libgcc lose the extra paths settings, but they also don't use them. Those settings are used to configure the compiler itself, and the build gets the sysroot settings and such directly from our cross compiler.

So I think setting this here is unnecessary. If we really want to set those values for libgcc* maybe I can put them in libgcc-common.inc.

Quoted 58 lines
Quoted 43 lines
Quoted 43 lines
Quoted 43 lines
Quoted 43 lines
meta/recipes-devtools/gcc/gcc-13.2.inc +0 -1
-
 CVE_STATUS[CVE-2021-37322] = "cpe-incorrect: Is a binutils 2.26 issue, not gcc"
 CVE_STATUS[CVE-2023-4039] = "fixed-version: Fixed via CVE-2023-4039.patch included here. Set the status explictly to deal with all recipes that share the gcc-source"
meta/recipes-devtools/gcc/gcc-cross-canadian.inc +1 -0
index ec87b462193..7c4233c2115 100644
@@ -12,6 +12,7 @@ require gcc-configure-common.inc
 EXTRA_OECONF += "--with-plugin-ld=ld"
 EXTRA_OECONF_PATHS = "\
     --with-gxx-include-dir=/not/exist${target_includedir}/c++/${BINV} \
+    --with-gxx-libcxx-include-dir=/not/exist${target_includedir}/c++/v1 \
     --with-build-time-tools=${STAGING_DIR_NATIVE}${prefix_native}/${TARGET_SYS}/bin \
     --with-sysroot=/not/exist \
     --with-build-sysroot=${STAGING_DIR_TARGET} \
meta/recipes-devtools/gcc/gcc-cross.inc +1 -0
index a540fb2434a..5b0ca15d476 100644
@@ -37,6 +37,7 @@ EXTRA_OECONF:remove:libc-newlib = "--enable-threads=posix"
 
 EXTRA_OECONF_PATHS = "\
     --with-gxx-include-dir=/not/exist${target_includedir}/c++/${BINV} \
+    --with-gxx-libcxx-include-dir=/not/exist${target_includedir}/c++/v1 \
     --with-sysroot=/not/exist \
     --with-build-sysroot=${STAGING_DIR_TARGET} \
 "
meta/recipes-devtools/gcc/gcc-target.inc +1 -0
index 7dac3ef422c..82da5ef82be 100644
@@ -2,6 +2,7 @@ GCCMULTILIB = "--enable-multilib"
 require gcc-configure-common.inc
 
 EXTRA_OECONF_PATHS = "\
+    --with-gxx-libcxx-include-dir=${target_includedir}/c++/v1 \
     --with-build-sysroot=${STAGING_DIR_TARGET} \
 "
 
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

--
2.41.0

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