summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2023-05-17 10:05:48 +0000
committerSteve Sakoman <steve@sakoman.com>2023-05-30 04:11:15 -1000
commit645fd39e4bf5616e887a865e69984a68defafaba (patch)
treec43b4c0c7896eb5de6e0e0d8b25d914f3686316b
parent971da3487257b20f535428c5e8d75e90034a3977 (diff)
downloadpoky-645fd39e4bf5616e887a865e69984a68defafaba.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) (From OE-Core rev: 4ee9d5839669560ec10f23445fa8bbc03a4c5406) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Steve Sakoman <steve@sakoman.com>
-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 8074bf1025..d019b0790b 100644
--- a/meta/recipes-devtools/gcc/gcc-runtime.inc
+++ b/meta/recipes-devtools/gcc/gcc-runtime.inc
@@ -68,7 +68,8 @@ do_configure () {
68 # libstdc++ isn't built yet so CXX would error not able to find it which breaks stdc++'s configure 68 # libstdc++ isn't built yet so CXX would error not able to find it which breaks stdc++'s configure
69 # tests. Create a dummy empty lib for the purposes of configure. 69 # tests. Create a dummy empty lib for the purposes of configure.
70 mkdir -p ${WORKDIR}/dummylib 70 mkdir -p ${WORKDIR}/dummylib
71 ${CC} -x c /dev/null -nostartfiles -shared -o ${WORKDIR}/dummylib/libstdc++.so 71 ${CC} -x c /dev/null -c -o ${WORKDIR}/dummylib/dummylib.o
72 ${AR} rcs ${WORKDIR}/dummylib/libstdc++.a ${WORKDIR}/dummylib/dummylib.o
72 for d in libgcc ${RUNTIMETARGET}; do 73 for d in libgcc ${RUNTIMETARGET}; do
73 echo "Configuring $d" 74 echo "Configuring $d"
74 rm -rf ${B}/${TARGET_SYS}/$d/ 75 rm -rf ${B}/${TARGET_SYS}/$d/