I use the simple patch below every time I compile, but it would be great if Palemoon would compile out of the box. Can we make the optimisation in compiler-opts.m4 only appear if SSE optimisation is enabled in the .mozconfig file or something like that?
Or even better: Passing down any kind of optimisation from .mozconfig. May it be SSE or AltiVec or something else.
Code: Select all
git diff build/autoconf/compiler-opts.m4
diff --git a/build/autoconf/compiler-opts.m4 b/build/autoconf/compiler-opts.m4
index 82d0b43fc..c47d792f4 100644
--- a/build/autoconf/compiler-opts.m4
+++ b/build/autoconf/compiler-opts.m4
@@ -176,8 +176,8 @@ if test "$GNU_CC"; then
CFLAGS="$CFLAGS -ffunction-sections -fdata-sections"
CXXFLAGS="$CXXFLAGS -ffunction-sections -fdata-sections"
fi
- CFLAGS="$CFLAGS -fno-math-errno -msse2 -mfpmath=sse"
- CXXFLAGS="$CXXFLAGS -fno-exceptions -fno-math-errno -msse2 -mfpmath=sse"
+ CFLAGS="$CFLAGS -fno-math-errno"
+ CXXFLAGS="$CXXFLAGS -fno-exceptions -fno-math-errno"
if test -z "$CLANG_CC"; then
case "$CC_VERSION" in
