diff --git a/helpers/make-firefox b/helpers/make-firefox
index 20b92ffc2beafeaacf78199688c7ae959ceee8b8..1b35ef663df5b6888864050b09376b97f023ebe3 100644
--- a/helpers/make-firefox
+++ b/helpers/make-firefox
@@ -247,6 +247,9 @@ debian/rules debian/control
 touch -d "yesterday" debian/control
 debian/rules debian/control
 
+#https://bugzilla.mozilla.org/show_bug.cgi?id=1047803
+sed 's/--enable-optimize$/--enable-optimize="-O2"/' -i debian/config/mozconfig.in
+
 changelog  "Rebranded for Trisquel"
 
 compile