summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2022-07-26 06:55:51 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-08-01 16:27:30 +0100
commit27fde9cc2aeddb9ea964efb4cc2de7c608256777 (patch)
treef8cc648780db34f749a6a351d4919e4abb3bd8a9 /meta
parent35b74ace9ce8cdb9bf749c87fa757d7579c03242 (diff)
downloadpoky-27fde9cc2aeddb9ea964efb4cc2de7c608256777.tar.gz
gcc-runtime: Pass -nostartfiles when building dummy libstdc++.so
This is a dummy shared object therefore reduce dependencies further by not requiring the C startup files, we wont use this shared library for anything useful anyway (From OE-Core rev: 2bc86c029fb82ae572f6a89407ccfe332972568c) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Pavel Zhukov <pavel.zhukov@huawei.com> Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-devtools/gcc/gcc-runtime.inc3
1 files changed, 1 insertions, 2 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-runtime.inc b/meta/recipes-devtools/gcc/gcc-runtime.inc
index c85b5888d4..8074bf1025 100644
--- a/meta/recipes-devtools/gcc/gcc-runtime.inc
+++ b/meta/recipes-devtools/gcc/gcc-runtime.inc
@@ -68,8 +68,7 @@ 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 touch ${WORKDIR}/dummylib/dummylib.c 71 ${CC} -x c /dev/null -nostartfiles -shared -o ${WORKDIR}/dummylib/libstdc++.so
72 ${CC} ${WORKDIR}/dummylib/dummylib.c -shared -o ${WORKDIR}/dummylib/libstdc++.so
73 for d in libgcc ${RUNTIMETARGET}; do 72 for d in libgcc ${RUNTIMETARGET}; do
74 echo "Configuring $d" 73 echo "Configuring $d"
75 rm -rf ${B}/${TARGET_SYS}/$d/ 74 rm -rf ${B}/${TARGET_SYS}/$d/