diff options
Diffstat (limited to 'sci-mathematics/giac/files/giac-1.9.0.67-glibcxx-assertions.patch')
-rw-r--r-- | sci-mathematics/giac/files/giac-1.9.0.67-glibcxx-assertions.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/sci-mathematics/giac/files/giac-1.9.0.67-glibcxx-assertions.patch b/sci-mathematics/giac/files/giac-1.9.0.67-glibcxx-assertions.patch new file mode 100644 index 000000000000..dcdcfb5a728e --- /dev/null +++ b/sci-mathematics/giac/files/giac-1.9.0.67-glibcxx-assertions.patch @@ -0,0 +1,30 @@ +From 8fa2b53ee0db1827a4ddd88a7e754a7b1d91ca2c Mon Sep 17 00:00:00 2001 +From: Michael Orlitzky <michael@orlitzky.com> +Date: Fri, 25 Aug 2023 20:33:31 -0400 +Subject: [PATCH 1/1] configure.ac: delete _GLIBCXX_ASSERTIONS override + +This was added upstream when it was pointed out that the codebase +contains undefined behavior that triggers glibcxx's assertions. +Disabling the assertions without fixing the undefined behavior is not +a satisfactory solution, so we drop the override. +--- + configure.ac | 4 ---- + 1 file changed, 4 deletions(-) + +diff --git a/configure.ac b/configure.ac +index d66c3e1..6fef28b 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -45,10 +45,6 @@ GINAC_STD_CXX_HEADERS + AC_CHECK_HEADERS(regex) + AC_CHECK_FUNCS(tgammaf) + +-dnl CXXFLAGS="$CXXFLAGS -std=c++0x" +-dnl avoid "security" checks for vectors +-CXXFLAGS="$CXXFLAGS -U_GLIBCXX_ASSERTIONS" +- + dnl Define DOUBLEVAL if bigendian + if test "x$ac_cv_c_bigendian" = "xyes"; then + CXXFLAGS="$CXXFLAGS -DDOUBLEVAL" +-- +2.41.0 |