[thunderbird] Added build flags for second arches

Martin Stransky stransky at fedoraproject.org
Fri Sep 14 15:20:31 UTC 2012


commit cf08b543c3e2b7c999f8814d9bd434e06075cb91
Author: Martin Stransky <stransky at anakreon.cz>
Date:   Fri Sep 14 17:20:23 2012 +0200

    Added build flags for second arches

 thunderbird.spec |   13 ++++++++++++-
 1 files changed, 12 insertions(+), 1 deletions(-)
---
diff --git a/thunderbird.spec b/thunderbird.spec
index 9650f66..6a7c167 100644
--- a/thunderbird.spec
+++ b/thunderbird.spec
@@ -40,7 +40,7 @@
 Summary:        Mozilla Thunderbird mail/newsgroup client
 Name:           thunderbird
 Version:        15.0.1
-Release:        1%{?dist}
+Release:        2%{?dist}
 URL:            http://www.mozilla.org/projects/thunderbird/
 License:        MPLv1.1 or GPLv2+ or LGPLv2+
 Group:          Applications/Internet
@@ -214,8 +214,16 @@ MOZ_OPT_FLAGS=$(echo "$RPM_OPT_FLAGS -fpermissive" | \
 %if %{?debug_build}
 MOZ_OPT_FLAGS=$(echo "$MOZ_OPT_FLAGS" | %{__sed} -e 's/-O2//')
 %endif
+%ifarch s390 s390x
+MOZ_OPT_FLAGS=$(echo "$RPM_OPT_FLAGS" | %{__sed} -e 's/-g/-g1')
+%endif
+%ifarch s390 %{arm} ppc
+MOZ_LINK_FLAGS="-Wl,--no-keep-memory -Wl,--reduce-memory-overheads"
+%endif
+
 export CFLAGS=$MOZ_OPT_FLAGS
 export CXXFLAGS=$MOZ_OPT_FLAGS
+export LDFLAGS=$MOZ_LINK_FLAGS
 
 export PREFIX='%{_prefix}'
 export LIBDIR='%{_libdir}'
@@ -393,6 +401,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 #===============================================================================
 
 %changelog
+* Fri Sep 14 2012 Martin Stransky <stransky at redhat.com> - 15.0.1-2
+- Added build flags for second arches
+
 * Tue Sep 11 2012 Jan Horak <jhorak at redhat.com> - 15.0.1-1
 - Update to 15.0.1
 


More information about the scm-commits mailing list