compile on other non-x86 platforms

This commit is contained in:
Christopher Aillon 2005-09-28 17:59:54 +00:00
parent 78907605a1
commit 5037e06a81
2 changed files with 34 additions and 0 deletions

22
firefox-1.1-visibility.patch Executable file
View File

@ -0,0 +1,22 @@
Index: configure
===================================================================
RCS file: /cvsroot/mozilla/configure,v
retrieving revision 1.1443
diff -u -p -6 -r1.1443 configure
--- configure 2 Jun 2005 04:00:20 -0000 1.1443
+++ configure 6 Jun 2005 07:34:06 -0000
@@ -7303,13 +7303,13 @@ else
int foo_default = 1;
EOF
ac_cv_visibility_pragma=no
if ${CC-cc} -Werror -S conftest.c -o conftest.s >/dev/null 2>&1; then
if grep '\.hidden.*foo_hidden' conftest.s >/dev/null; then
if ! grep '\.hidden.*foo_default' conftest.s > /dev/null; then
- ac_cv_visibility_pragma=yes
+ ac_cv_visibility_pragma=no
fi
fi
fi
rm -f conftest.cs
fi

View File

@ -1,3 +1,6 @@
# Temporary until this works again
ExcludeArch: ppc64
%define desktop_file_utils_version 0.9
%define nspr_version 4.6
%define cairo_version 1.0
@ -29,6 +32,7 @@ Source100: find-external-requires
# Build patches
Patch2: firefox-1.0-prdtoa.patch
Patch5: firefox-1.1-visibility.patch
Patch6: firefox-1.1-nss-system-nspr.patch
Patch10: thunderbird-0.7.3-psfonts.patch
@ -78,6 +82,14 @@ Mozilla Thunderbird is a standalone mail and newsgroup client.
%setup -q -n mozilla
%patch2 -p0
# Pragma visibility is broken on most platforms for some reason.
# It works on i386 so leave it alone there. Disable elsewhere.
# See http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20297
%ifarch i386
%patch5 -p0
%endif
%patch6 -p1
%patch10 -p1 -b .psfonts
%patch11 -p1 -b .gnome-uriloader