summaryrefslogtreecommitdiff
path: root/pkgs/development/libraries/jemalloc/o3-to-o2.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/jemalloc/o3-to-o2.patch')
-rw-r--r--pkgs/development/libraries/jemalloc/o3-to-o2.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/pkgs/development/libraries/jemalloc/o3-to-o2.patch b/pkgs/development/libraries/jemalloc/o3-to-o2.patch
new file mode 100644
index 000000000000..66a0310ad2de
--- /dev/null
+++ b/pkgs/development/libraries/jemalloc/o3-to-o2.patch
@@ -0,0 +1,15 @@
+diff --git a/configure.ac b/configure.ac
+index 1c9c5067..a0856b89 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -1372,8 +1372,8 @@ AC_SUBST([enable_debug])
+ dnl Only optimize if not debugging.
+ if test "x$enable_debug" = "x0" ; then
+ if test "x$GCC" = "xyes" ; then
+- JE_CFLAGS_ADD([-O3])
+- JE_CXXFLAGS_ADD([-O3])
++ JE_CFLAGS_ADD([-O2])
++ JE_CXXFLAGS_ADD([-O2])
+ JE_CFLAGS_ADD([-funroll-loops])
+ elif test "x$je_cv_msvc" = "xyes" ; then
+ JE_CFLAGS_ADD([-O2])