diff options
| author | Khem Raj <raj.khem@gmail.com> | 2025-09-15 11:10:50 -0700 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-09-18 11:16:42 +0100 |
| commit | f9300011ec4ff867c7a6f0c7b8643dcc124f987c (patch) | |
| tree | 48ce33d6873c997dbcfe18ddfef927405c1e14b3 | |
| parent | 1c6f7919666f5f6686312e1cada35accafa8939e (diff) | |
| download | poky-f9300011ec4ff867c7a6f0c7b8643dcc124f987c.tar.gz | |
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>
| -rw-r--r-- | meta/recipes-devtools/apt/apt_3.0.3.bb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/recipes-devtools/apt/apt_3.0.3.bb b/meta/recipes-devtools/apt/apt_3.0.3.bb index 03a6869393..75d85dbbce 100644 --- a/meta/recipes-devtools/apt/apt_3.0.3.bb +++ b/meta/recipes-devtools/apt/apt_3.0.3.bb | |||
| @@ -58,6 +58,10 @@ PACKAGECONFIG ??= "" | |||
| 58 | # the system doesn't have merged /usr folders. | 58 | # the system doesn't have merged /usr folders. |
| 59 | PACKAGECONFIG[usrmerge] = "-DREQUIRE_MERGED_USR=ON,-DREQUIRE_MERGED_USR=OFF" | 59 | PACKAGECONFIG[usrmerge] = "-DREQUIRE_MERGED_USR=ON,-DREQUIRE_MERGED_USR=OFF" |
| 60 | 60 | ||
| 61 | # Needed until https://salsa.debian.org/apt-team/apt/-/merge_requests/511 is fixed | ||
| 62 | CXXFLAGS:append:toolchain-clang = " -stdlib=libstdc++" | ||
| 63 | LDFLAGS:append:toolchain-clang = " -stdlib=libstdc++" | ||
| 64 | |||
| 61 | do_configure:prepend() { | 65 | do_configure:prepend() { |
| 62 | echo "set( CMAKE_FIND_ROOT_PATH_MODE_INCLUDE BOTH )" >> ${WORKDIR}/toolchain.cmake | 66 | echo "set( CMAKE_FIND_ROOT_PATH_MODE_INCLUDE BOTH )" >> ${WORKDIR}/toolchain.cmake |
| 63 | } | 67 | } |
