diff options
author | Khem Raj <raj.khem@gmail.com> | 2022-07-18 20:00:23 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-07-22 12:14:51 +0100 |
commit | 2642bdb8908afb800e6dc5722602a87228dd8694 (patch) | |
tree | 1c9317e5be14dbc4cb4493623ede03ebab3076b2 /meta/recipes-devtools/gcc/gcc-runtime.inc | |
parent | 23d8501adcc6ed092ca407c12315e4c88d1a86ed (diff) | |
download | poky-2642bdb8908afb800e6dc5722602a87228dd8694.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: e1c4953f5587621d4911416c2e9350ad0c27b296)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-runtime.inc')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-runtime.inc | 3 |
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 5d74e4494d..3e1c799ba1 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/ |