gentoo-ebuilds/media-libs/libprojectm/files/libprojectm-3.1.12-drop-automagic-libcxx.patch
Sam James e4fc3bec32
media-libs/libprojectm: don't automagically pass -stdlib=libc++
Since 776c012c6e, 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@gentoo.org>
2025-08-20 02:04:56 +01:00

18 lines
645 B
Diff

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"])