
Working towards making the build deterministic regardless of the build host Page size: https://github.com/jemalloc/jemalloc/issues/467 https://sources.debian.org/src/jemalloc/5.3.0-3/debian/rules/ https://github.com/NixOS/nixpkgs/issues/380852 Darwin: Similar to https://github.com/NixOS/nixpkgs/pull/394620 LG_VADDR: https://github.com/jemalloc/jemalloc/issues/1997
16 lines
485 B
Diff
16 lines
485 B
Diff
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])
|