summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFlorian Franzmann2010-08-04 19:53:44 +0200
committerGeorge Sherwood2010-09-12 13:50:05 -0500
commit0427e57c4ca318c94606d2f377499ea7c65495cf (patch)
treecd887211b880804cc4e212a6c30a3e31fc849528
parent704d479d98b22b4a848671b7152601f477eca3f7 (diff)
http/xulrunner: forced optimizations to -O2 to prevent segfault
(cherry picked from commit d24af6375f032065fc857dc1748ad8e3ef8dc99b)
-rwxr-xr-xhttp/xulrunner/BUILD5
-rw-r--r--http/xulrunner/HISTORY3
2 files changed, 7 insertions, 1 deletions
diff --git a/http/xulrunner/BUILD b/http/xulrunner/BUILD
index 7caf21161e..bf8704425e 100755
--- a/http/xulrunner/BUILD
+++ b/http/xulrunner/BUILD
@@ -13,6 +13,8 @@ fi &&
#
# No fast optimization for Mozilla, bit us so many times...
#
+CFLAGS="${CFLAGS//-Os/-O2}" &&
+CXXFLAGS="${CXXFLAGS//-Os/-O2}" &&
CFLAGS="${CFLAGS//-O3/-O2}" &&
CXXFLAGS="${CXXFLAGS//-O3/-O2}" &&
@@ -22,9 +24,10 @@ CXXFLAGS="${CXXFLAGS//-O3/-O2}" &&
CFLAGS="${CFLAGS//-ffast-math/}" &&
CXXFLAGS="${CXXFLAGS//-ffast-math/}" &&
+OPTS="${OPTS} --enable-optimize=-O2" &&
+
./configure --prefix=$INSTALL_ROOT/usr \
--mandir=$INSTALL_ROOT/usr/share/man \
- --enable-optimize="$CFLAGS" \
$OPTS &&
make_single &&
# workaround for configure not handling --disable-necko-wifi correctly
diff --git a/http/xulrunner/HISTORY b/http/xulrunner/HISTORY
index f15b84d4a4..5e2c7025d4 100644
--- a/http/xulrunner/HISTORY
+++ b/http/xulrunner/HISTORY
@@ -1,3 +1,6 @@
+2010-08-04 Florian Franzmann <siflfran@hawo.stw.uni-erlangen.de>
+ * BUILD: forced optimizations to -O2 to prevent segfault
+
2010-07-25 George Sherwood <gsherwood@sourcemage.org>
* DETAILS: SECURITY_PATCH++. Now it is listed as fixing a
vulnerability.