summaryrefslogtreecommitdiffstats
path: root/browser/app/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'browser/app/Makefile.in')
-rw-r--r--browser/app/Makefile.in8
1 files changed, 8 insertions, 0 deletions
diff --git a/browser/app/Makefile.in b/browser/app/Makefile.in
index d807b4337..ca87f0995 100644
--- a/browser/app/Makefile.in
+++ b/browser/app/Makefile.in
@@ -23,6 +23,14 @@ NSDISTMODE = copy
include $(topsrcdir)/config/config.mk
+# If we are trying to show an error dialog about the lack of SSE2 support,
+# make sure that code itself doesn't use SSE2.
+ifdef MOZ_LINUX_SSE2_STARTUP_ERROR
+CXXFLAGS := $(filter-out -march=% -msse2 -mfpmath=sse,$(CXXFLAGS))
+CXX := $(filter-out -march=% -msse2 -mfpmath=sse,$(CXX))
+CXXFLAGS += -msse -mno-sse2 -mfpmath=387
+endif
+
ifeq ($(OS_ARCH),WINNT)
# Rebuild firefox.exe if the manifest changes - it's included by splash.rc.
# (this dependency should really be just for firefox.exe, not other targets)