Fix build on AArch64

This commit is contained in:
Marcin Juszkiewicz 2016-01-06 09:27:06 +01:00
parent 6fa6641b19
commit b39173f330
2 changed files with 21 additions and 1 deletions

View File

@ -0,0 +1,14 @@
diff --git a/media/webrtc/trunk/build/build_config.h b/media/webrtc/trunk/build/build_config.h
index 1a9579e..4f311c5 100644
--- a/media/webrtc/trunk/build/build_config.h
+++ b/media/webrtc/trunk/build/build_config.h
@@ -156,6 +156,9 @@
#elif defined(__alpha__)
#define ARCH_CPU_ALPHA 1
#define ARCH_CPU_64_BITS 1
+#elif defined(__aarch64__)
+#define ARCH_CPU_AARCH64 1
+#define ARCH_CPU_64_BITS 1
#else
#error Please add support for your architecture in build/build_config.h
#endif

View File

@ -77,7 +77,7 @@
Summary: Mozilla Firefox Web browser Summary: Mozilla Firefox Web browser
Name: firefox Name: firefox
Version: 43.0.3 Version: 43.0.3
Release: 2%{?pre_tag}%{?dist} Release: 3%{?pre_tag}%{?dist}
URL: http://www.mozilla.org/projects/firefox/ URL: http://www.mozilla.org/projects/firefox/
License: MPLv1.1 or GPLv2+ or LGPLv2+ License: MPLv1.1 or GPLv2+ or LGPLv2+
Group: Applications/Internet Group: Applications/Internet
@ -123,6 +123,8 @@ Patch222: firefox-gtk3-20.patch
# Update https://bugzilla.mozilla.org/show_bug.cgi?id=1142056 # Update https://bugzilla.mozilla.org/show_bug.cgi?id=1142056
# when removed # when removed
Patch500: aarch64-fix-skia.patch Patch500: aarch64-fix-skia.patch
# Add AArch64 architecture definition for webrtc
Patch501: firefox-webrtc-aarch64.patch
%if %{?system_nss} %if %{?system_nss}
BuildRequires: pkgconfig(nspr) >= %{nspr_version} BuildRequires: pkgconfig(nspr) >= %{nspr_version}
@ -261,6 +263,7 @@ cd %{tarballdir}
%endif %endif
%patch500 -p1 %patch500 -p1
%patch501 -p1
%{__rm} -f .mozconfig %{__rm} -f .mozconfig
%{__cp} %{SOURCE10} .mozconfig %{__cp} %{SOURCE10} .mozconfig
@ -753,6 +756,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
#--------------------------------------------------------------------- #---------------------------------------------------------------------
%changelog %changelog
* Tue Jan 05 2016 Marcin Juszkiewicz <mjuszkiewicz@redhat.com> - 43.0.3-3
- Fix build on AArch64.
* Mon Jan 4 2016 Martin Stransky <stransky@redhat.com> - 43.0.3-2 * Mon Jan 4 2016 Martin Stransky <stransky@redhat.com> - 43.0.3-2
- Enabled Skia (rhbz#1282134) - Enabled Skia (rhbz#1282134)