mirror of
https://git.yoctoproject.org/poky
synced 2026-09-24 22:36:21 +02:00
apt: Always use libstdc++ when using clang compiler
apt is not portable across non libstdc++ systems yet there is work to get it there but its still in progress Default to use libstdc++ with clang (From OE-Core rev: ad14432a516db4d4752b9905d1a7127942b142ea) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -58,6 +58,10 @@ PACKAGECONFIG ??= ""
|
|||||||
# the system doesn't have merged /usr folders.
|
# the system doesn't have merged /usr folders.
|
||||||
PACKAGECONFIG[usrmerge] = "-DREQUIRE_MERGED_USR=ON,-DREQUIRE_MERGED_USR=OFF"
|
PACKAGECONFIG[usrmerge] = "-DREQUIRE_MERGED_USR=ON,-DREQUIRE_MERGED_USR=OFF"
|
||||||
|
|
||||||
|
# Needed until https://salsa.debian.org/apt-team/apt/-/merge_requests/511 is fixed
|
||||||
|
CXXFLAGS:append:toolchain-clang = " -stdlib=libstdc++"
|
||||||
|
LDFLAGS:append:toolchain-clang = " -stdlib=libstdc++"
|
||||||
|
|
||||||
do_configure:prepend() {
|
do_configure:prepend() {
|
||||||
echo "set( CMAKE_FIND_ROOT_PATH_MODE_INCLUDE BOTH )" >> ${WORKDIR}/toolchain.cmake
|
echo "set( CMAKE_FIND_ROOT_PATH_MODE_INCLUDE BOTH )" >> ${WORKDIR}/toolchain.cmake
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user