ARM fixes firefox16
authorDirk Müller <dmueller@suse.com>
Tue, 11 Sep 2012 11:29:06 +0200
branchfirefox16
changeset 535 cba7622bad5d
parent 533 6bcb1bfae08e
child 536 66730e3b1735
ARM fixes - not using crashreporter - do not build debug symbols
xulrunner/xulrunner.changes
xulrunner/xulrunner.spec
--- a/xulrunner/xulrunner.changes	Fri Aug 31 20:02:19 2012 +0200
+++ b/xulrunner/xulrunner.changes	Tue Sep 11 11:29:06 2012 +0200
@@ -1,3 +1,8 @@
+-------------------------------------------------------------------
+Tue Sep 11 09:26:09 UTC 2012 - wr@rosenauer.org
+
+- update to 16.0b2
+
 -------------------------------------------------------------------
 Sun Aug 26 13:48:04 UTC 2012 - wr@rosenauer.org
 
@@ -38,6 +43,13 @@
 - fixed filelist
 
 -------------------------------------------------------------------
+Fri Aug 17 13:09:49 UTC 2012 - dmueller@suse.com
+
+- fix build on ARM:
+  * disable crashreporter, it does not build
+  * reduce debuginfo during built to avoid running out of memory
+
+-------------------------------------------------------------------
 Sat Jul 14 19:33:44 UTC 2012 - wr@rosenauer.org
 
 - update to 14.0.1 (bnc#771583)
--- a/xulrunner/xulrunner.spec	Fri Aug 31 20:02:19 2012 +0200
+++ b/xulrunner/xulrunner.spec	Tue Sep 11 11:29:06 2012 +0200
@@ -87,7 +87,7 @@
 %define has_system_nss   1
 %define has_system_cairo 0
 %define localize 0
-%ifarch ppc ppc64 s390 s390x ia64
+%ifarch ppc ppc64 s390 s390x ia64 %arm
 %define crashreporter    0
 %else
 %define crashreporter    1
@@ -207,8 +207,13 @@
 %ifarch ppc64
 export CFLAGS="$CFLAGS -mminimal-toc"
 %endif
+export LDFLAGS=" -Wl,-rpath -Wl,${MOZ_APP_DIR}"
+%ifarch %arm
+# debug symbols require too much memory during build
+export CFLAGS="${CFLAGS/-g/}"
+LDFLAGS+="-Wl,--reduce-memory-overheads -Wl,--no-keep-memory"
+%endif
 export CXXFLAGS="$CFLAGS"
-export LDFLAGS="-Wl,-rpath -Wl,${MOZ_APP_DIR}"
 export MOZCONFIG=$RPM_BUILD_DIR/mozconfig
 export MOZILLA_OFFICIAL=1
 export BUILD_OFFICIAL=1
@@ -282,11 +287,12 @@
 # ARM
 %ifarch %arm
 cat << EOF >> $MOZCONFIG
-%ifarch armv7l
+%ifarch armv7l armv7hl
 ac_add_options --with-arch=armv7-a
 ac_add_options --with-float-abi=hard
 ac_add_options --with-fpu=vfpv3-d16
 ac_add_options --with-thumb=yes
+ac_add_options --disable-debug
 %endif
 %ifarch armv5tel
 ac_add_options --with-arch=armv5te