summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2022-07-24 08:10:21 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-07-25 22:59:00 +0100
commit591f14c698f43ca4ae6431c8cd96225d1ed5dbf5 (patch)
tree419e99915f548940755592d4ab4e7958344acea3
parentc5bc2d2fe66ff825b523ddd5fcb159114c201964 (diff)
downloadpoky-591f14c698f43ca4ae6431c8cd96225d1ed5dbf5.tar.gz
gcc-runtime: Use static dummy libstdc++
some standalone targets e.g. riscv64-elf disable shared linking for baremetal ELF ABI in ld, therefore lets make it a static library (From OE-Core rev: 3c6219dfcbcbde314648ba8cc54a90b32ea1c952) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/recipes-devtools/gcc/gcc-runtime.inc3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-runtime.inc b/meta/recipes-devtools/gcc/gcc-runtime.inc
index 4ddbaca3ab..b8bfdcedad 100644
--- a/meta/recipes-devtools/gcc/gcc-runtime.inc
+++ b/meta/recipes-devtools/gcc/gcc-runtime.inc
@@ -69,7 +69,8 @@ do_configure () {
69 # libstdc++ isn't built yet so CXX would error not able to find it which breaks stdc++'s configure 69 # libstdc++ isn't built yet so CXX would error not able to find it which breaks stdc++'s configure
70 # tests. Create a dummy empty lib for the purposes of configure. 70 # tests. Create a dummy empty lib for the purposes of configure.
71 mkdir -p ${WORKDIR}/dummylib 71 mkdir -p ${WORKDIR}/dummylib
72 ${CC} -x c /dev/null -nostartfiles -shared -o ${WORKDIR}/dummylib/libstdc++.so 72 ${CC} -x c /dev/null -c -o ${WORKDIR}/dummylib/dummylib.o
73 ${AR} rcs ${WORKDIR}/dummylib/libstdc++.a ${WORKDIR}/dummylib/dummylib.o
73 for d in libgcc ${RUNTIMETARGET}; do 74 for d in libgcc ${RUNTIMETARGET}; do
74 echo "Configuring $d" 75 echo "Configuring $d"
75 rm -rf ${B}/${TARGET_SYS}/$d/ 76 rm -rf ${B}/${TARGET_SYS}/$d/