From 2771f79232c273bc2a57d23bf335dd81ccf6af28 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 5 Dec 2021 02:47:11 +0000 Subject: gentoo resync : 05.12.2021 --- .../metamath-configure.ac-dont_force_optimize.patch | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 sci-mathematics/metamath/files/metamath-configure.ac-dont_force_optimize.patch (limited to 'sci-mathematics/metamath/files') diff --git a/sci-mathematics/metamath/files/metamath-configure.ac-dont_force_optimize.patch b/sci-mathematics/metamath/files/metamath-configure.ac-dont_force_optimize.patch new file mode 100644 index 000000000000..548b0042ecef --- /dev/null +++ b/sci-mathematics/metamath/files/metamath-configure.ac-dont_force_optimize.patch @@ -0,0 +1,16 @@ +index 263d3d8..68a8fea 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -45,11 +45,9 @@ int f() { + + # Try to optimize. + AC_MSG_CHECKING([[for optimization flags]]) +-new_CFLAGS="-O3 -funroll-loops -finline-functions -fomit-frame-pointer" ++new_CFLAGS="" + saved_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS $new_CFLAGS" +-# Remove any existing "-O2", or it will override what we're doing. +-CFLAGS=$( printf "%s" "$CFLAGS" | sed -e 's/ -O2/ /' ) + AC_LINK_IFELSE( + [AC_LANG_PROGRAM([[ + #include -- cgit v1.2.3