Accepting request 156966 from X11:XOrg
- add aarch64-support.diff: Add support for aarch64 (forwarded request 156963 from dirkmueller) OBS-URL: https://build.opensuse.org/request/show/156966 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/xorg-cf-files?expand=0&rev=5
This commit is contained in:
commit
23a0428ae5
47
aarch64-support.diff
Normal file
47
aarch64-support.diff
Normal file
@ -0,0 +1,47 @@
|
|||||||
|
--- Imake.cf
|
||||||
|
+++ Imake.cf
|
||||||
|
@@ -1022,6 +1022,10 @@
|
||||||
|
# define AMD64Architecture
|
||||||
|
# endif
|
||||||
|
# endif
|
||||||
|
+# if defined(__aarch64__)
|
||||||
|
+# define AArch64Architecture
|
||||||
|
+# undef __aarch64__
|
||||||
|
+# endif
|
||||||
|
#endif /* linux || __GLIBC__ */
|
||||||
|
|
||||||
|
#if (defined(__Lynx__) || defined(Lynx)) && (defined(i386) || defined(__i386__) || defined(__x86__) || defined(__powerpc__) || defined(__sparc__) || defined(sparc))
|
||||||
|
--- linux.cf
|
||||||
|
+++ linux.cf
|
||||||
|
@@ -976,6 +976,16 @@
|
||||||
|
# define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines -D_XSERVER64
|
||||||
|
#endif /* AMD64Architecture */
|
||||||
|
|
||||||
|
+#ifdef AArch64Architecture
|
||||||
|
+# ifndef OptimizedCDebugFlags
|
||||||
|
+# define OptimizedCDebugFlags DefaultGcc2AArch64Opt
|
||||||
|
+# endif
|
||||||
|
+# define LinuxMachineDefines -D__aarch64__
|
||||||
|
+# define ServerOSDefines XFree86ServerOSDefines -DDDXTIME
|
||||||
|
+# define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines -D_XSERVER64
|
||||||
|
+#endif /* AArch64Architecture */
|
||||||
|
+
|
||||||
|
+
|
||||||
|
#ifndef StandardDefines
|
||||||
|
# ifdef __linux__
|
||||||
|
# define StandardDefines -Dlinux LinuxMachineDefines LinuxSourceDefines
|
||||||
|
--- xfree86.cf
|
||||||
|
+++ xfree86.cf
|
||||||
|
@@ -2022,6 +2022,12 @@
|
||||||
|
# endif
|
||||||
|
#endif
|
||||||
|
|
||||||
|
+#if HasGcc2 && defined(AArch64Architecture)
|
||||||
|
+# ifndef DefaultGcc2AArch64Opt
|
||||||
|
+# define DefaultGcc2AArch64Opt -O2 -fno-strength-reduce GccAliasingArgs
|
||||||
|
+# endif
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
#if HasGcc2 && defined(AlphaArchitecture)
|
||||||
|
# ifndef DefaultGcc2AxpOpt
|
||||||
|
# define DefaultGcc2AxpOpt -O2 GccAliasingArgs
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Mar 1 10:58:34 UTC 2013 - dmueller@suse.com
|
||||||
|
|
||||||
|
- add aarch64-support.diff:
|
||||||
|
Add support for aarch64
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Tue Jun 26 10:03:03 UTC 2012 - sndirsch@suse.com
|
Tue Jun 26 10:03:03 UTC 2012 - sndirsch@suse.com
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package xorg-cf-files
|
# spec file for package xorg-cf-files
|
||||||
#
|
#
|
||||||
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -24,6 +24,7 @@ License: MIT
|
|||||||
Group: Development/Tools/Building
|
Group: Development/Tools/Building
|
||||||
Url: http://xorg.freedesktop.org/
|
Url: http://xorg.freedesktop.org/
|
||||||
Source0: http://xorg.freedesktop.org/releases/individual/util/%{name}-%{version}.tar.bz2
|
Source0: http://xorg.freedesktop.org/releases/individual/util/%{name}-%{version}.tar.bz2
|
||||||
|
Patch0: aarch64-support.diff
|
||||||
BuildRequires: font-util >= 1.1
|
BuildRequires: font-util >= 1.1
|
||||||
BuildRequires: pkgconfig(xorg-macros) >= 1.4
|
BuildRequires: pkgconfig(xorg-macros) >= 1.4
|
||||||
Requires: gccmakedep
|
Requires: gccmakedep
|
||||||
@ -51,6 +52,7 @@ converted.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
|
%patch0
|
||||||
cat > host.def << EOF
|
cat > host.def << EOF
|
||||||
#define ConfigDir %_configdir
|
#define ConfigDir %_configdir
|
||||||
#define XAppLoadDir /usr/share/X11/app-defaults
|
#define XAppLoadDir /usr/share/X11/app-defaults
|
||||||
@ -81,6 +83,10 @@ cat > host.def << EOF
|
|||||||
#undef DefaultGcc2AMD64Opt
|
#undef DefaultGcc2AMD64Opt
|
||||||
#define DefaultGcc2AMD64Opt $RPM_OPT_FLAGS -fno-strict-aliasing
|
#define DefaultGcc2AMD64Opt $RPM_OPT_FLAGS -fno-strict-aliasing
|
||||||
#endif
|
#endif
|
||||||
|
#ifdef AArch64Architecture
|
||||||
|
#undef DefaultGcc2AArch64Opt
|
||||||
|
#define DefaultGcc2AArch64Opt $RPM_OPT_FLAGS -fno-strict-aliasing
|
||||||
|
#endif
|
||||||
#ifdef s390xArchitecture
|
#ifdef s390xArchitecture
|
||||||
#undef OptimizedCDebugFlags
|
#undef OptimizedCDebugFlags
|
||||||
#define OptimizedCDebugFlags $RPM_OPT_FLAGS -fno-strict-aliasing
|
#define OptimizedCDebugFlags $RPM_OPT_FLAGS -fno-strict-aliasing
|
||||||
|
Loading…
x
Reference in New Issue
Block a user