summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc
diff options
context:
space:
mode:
authorDan McGregor <danismostlikely@gmail.com>2024-03-28 09:43:40 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-06-12 16:57:19 +0100
commitb67fced09debcd4bf9bd12dc8475972e495b9c0d (patch)
treed3799335c68a5aff0db377f74acae7cf7fa7d481 /meta/recipes-devtools/gcc
parent068ca2f2ebe8890d338d3ab6398ad927db898f4a (diff)
downloadpoky-b67fced09debcd4bf9bd12dc8475972e495b9c0d.tar.gz
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. (From OE-Core rev: f84ae97e2bc081c972e78ee4a958f21111dbbfb6) Signed-off-by: Daniel McGregor <daniel.mcgregor@vecima.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc')
-rw-r--r--meta/recipes-devtools/gcc/gcc-14.1.inc6
-rw-r--r--meta/recipes-devtools/gcc/gcc-cross-canadian.inc1
-rw-r--r--meta/recipes-devtools/gcc/gcc-cross.inc1
-rw-r--r--meta/recipes-devtools/gcc/gcc-target.inc1
4 files changed, 3 insertions, 6 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-14.1.inc b/meta/recipes-devtools/gcc/gcc-14.1.inc
index c639cb51f4..b057e570f3 100644
--- a/meta/recipes-devtools/gcc/gcc-14.1.inc
+++ b/meta/recipes-devtools/gcc/gcc-14.1.inc
@@ -108,10 +108,4 @@ EXTRA_OECONF_INITIAL = "\
108 --disable-libssp \ 108 --disable-libssp \
109" 109"
110 110
111EXTRA_OECONF_PATHS = "\
112 --with-gxx-include-dir=/not/exist{target_includedir}/c++/${BINV} \
113 --with-sysroot=/not/exist \
114 --with-build-sysroot=${STAGING_DIR_TARGET} \
115"
116
117CVE_STATUS[CVE-2021-37322] = "cpe-incorrect: Is a binutils 2.26 issue, not gcc" 111CVE_STATUS[CVE-2021-37322] = "cpe-incorrect: Is a binutils 2.26 issue, not gcc"
diff --git a/meta/recipes-devtools/gcc/gcc-cross-canadian.inc b/meta/recipes-devtools/gcc/gcc-cross-canadian.inc
index ec87b46219..7c4233c211 100644
--- a/meta/recipes-devtools/gcc/gcc-cross-canadian.inc
+++ b/meta/recipes-devtools/gcc/gcc-cross-canadian.inc
@@ -12,6 +12,7 @@ require gcc-configure-common.inc
12EXTRA_OECONF += "--with-plugin-ld=ld" 12EXTRA_OECONF += "--with-plugin-ld=ld"
13EXTRA_OECONF_PATHS = "\ 13EXTRA_OECONF_PATHS = "\
14 --with-gxx-include-dir=/not/exist${target_includedir}/c++/${BINV} \ 14 --with-gxx-include-dir=/not/exist${target_includedir}/c++/${BINV} \
15 --with-gxx-libcxx-include-dir=/not/exist${target_includedir}/c++/v1 \
15 --with-build-time-tools=${STAGING_DIR_NATIVE}${prefix_native}/${TARGET_SYS}/bin \ 16 --with-build-time-tools=${STAGING_DIR_NATIVE}${prefix_native}/${TARGET_SYS}/bin \
16 --with-sysroot=/not/exist \ 17 --with-sysroot=/not/exist \
17 --with-build-sysroot=${STAGING_DIR_TARGET} \ 18 --with-build-sysroot=${STAGING_DIR_TARGET} \
diff --git a/meta/recipes-devtools/gcc/gcc-cross.inc b/meta/recipes-devtools/gcc/gcc-cross.inc
index a540fb2434..5b0ca15d47 100644
--- a/meta/recipes-devtools/gcc/gcc-cross.inc
+++ b/meta/recipes-devtools/gcc/gcc-cross.inc
@@ -37,6 +37,7 @@ EXTRA_OECONF:remove:libc-newlib = "--enable-threads=posix"
37 37
38EXTRA_OECONF_PATHS = "\ 38EXTRA_OECONF_PATHS = "\
39 --with-gxx-include-dir=/not/exist${target_includedir}/c++/${BINV} \ 39 --with-gxx-include-dir=/not/exist${target_includedir}/c++/${BINV} \
40 --with-gxx-libcxx-include-dir=/not/exist${target_includedir}/c++/v1 \
40 --with-sysroot=/not/exist \ 41 --with-sysroot=/not/exist \
41 --with-build-sysroot=${STAGING_DIR_TARGET} \ 42 --with-build-sysroot=${STAGING_DIR_TARGET} \
42" 43"
diff --git a/meta/recipes-devtools/gcc/gcc-target.inc b/meta/recipes-devtools/gcc/gcc-target.inc
index 7dac3ef422..82da5ef82b 100644
--- a/meta/recipes-devtools/gcc/gcc-target.inc
+++ b/meta/recipes-devtools/gcc/gcc-target.inc
@@ -2,6 +2,7 @@ GCCMULTILIB = "--enable-multilib"
2require gcc-configure-common.inc 2require gcc-configure-common.inc
3 3
4EXTRA_OECONF_PATHS = "\ 4EXTRA_OECONF_PATHS = "\
5 --with-gxx-libcxx-include-dir=${target_includedir}/c++/v1 \
5 --with-build-sysroot=${STAGING_DIR_TARGET} \ 6 --with-build-sysroot=${STAGING_DIR_TARGET} \
6" 7"
7 8