commit: e4fc3bec32c653357869c2ca56365a62cc488ac6 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Wed Aug 20 01:02:01 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Wed Aug 20 01:04:56 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e4fc3bec
media-libs/libprojectm: don't automagically pass -stdlib=libc++ Since 776c012c6e3b6dd66aeeff851aedb48851f93975, we build GCC s.t. it has -stdlib= if one wishes to use it for advanced cases. Unfortunately, the libprojectm configure script automagically uses -stdlib=libc++ if available which is completely wrong and breaks the Qt check. Revbump given this is wrong for Clang as well and may build a broken (or incompatible) binary. Closes: https://bugs.gentoo.org/957690 Signed-off-by: Sam James <sam <AT> gentoo.org> .../libprojectm-3.1.12-drop-automagic-libcxx.patch | 18 ++++++++++++++++++ ...m-3.1.12-r2.ebuild => libprojectm-3.1.12-r3.ebuild} | 1 + 2 files changed, 19 insertions(+) diff --git a/media-libs/libprojectm/files/libprojectm-3.1.12-drop-automagic-libcxx.patch b/media-libs/libprojectm/files/libprojectm-3.1.12-drop-automagic-libcxx.patch new file mode 100644 index 000000000000..498a3005a859 --- /dev/null +++ b/media-libs/libprojectm/files/libprojectm-3.1.12-drop-automagic-libcxx.patch @@ -0,0 +1,18 @@ +Since 776c012c6e3b6dd66aeeff851aedb48851f93975, we build GCC s.t. it has +-stdlib= if one wishes to use it for advanced cases. Unfortunately, the +libprojectm configure script automagically uses -stdlib=libc++ if available +which is completely wrong and breaks the Qt check. +--- a/configure.ac ++++ b/configure.ac +@@ -153,11 +153,6 @@ AC_PREFIX_DEFAULT([/usr/local]) + + AC_PROG_MKDIR_P + +-AS_IF([echo ${host} | grep -Fq android], [], +- [AX_CHECK_COMPILE_FLAG([-stdlib=libc++], [ +- CXXFLAGS="$CXXFLAGS -stdlib=libc++"]) +-]) +- + AX_CHECK_COMPILE_FLAG([-std=c++14], [ + CXXFLAGS="$CXXFLAGS -std=c++14"]) + diff --git a/media-libs/libprojectm/libprojectm-3.1.12-r2.ebuild b/media-libs/libprojectm/libprojectm-3.1.12-r3.ebuild similarity index 96% rename from media-libs/libprojectm/libprojectm-3.1.12-r2.ebuild rename to media-libs/libprojectm/libprojectm-3.1.12-r3.ebuild index 72bc6d78ca53..0730e9c2323d 100644 --- a/media-libs/libprojectm/libprojectm-3.1.12-r2.ebuild +++ b/media-libs/libprojectm/libprojectm-3.1.12-r3.ebuild @@ -50,6 +50,7 @@ BDEPEND=" PATCHES=( "${FILESDIR}/${P}-missing-gl-header.patch" # bug 792204 "${FILESDIR}/${P}-cxx14.patch" + "${FILESDIR}/${PN}-3.1.12-drop-automagic-libcxx.patch" ) src_prepare() {
