70 lines
2.9 KiB
Diff
70 lines
2.9 KiB
Diff
Index: xutils-dev-7.7+5ubuntu1+riscv64.1/xorg-cf-files/Imake.cf
|
|
===================================================================
|
|
--- xutils-dev-7.7+5ubuntu1+riscv64.1.orig/xorg-cf-files/Imake.cf
|
|
+++ xutils-dev-7.7+5ubuntu1+riscv64.1/xorg-cf-files/Imake.cf
|
|
@@ -1042,6 +1042,10 @@ XCOMM Keep cpp from replacing path eleme
|
|
# define AArch64Architecture
|
|
# undef __aarch64__
|
|
# endif
|
|
+# if defined(__riscv) && (__riscv_xlen == 64)
|
|
+# define RISCV64Architecture
|
|
+# /* undef __riscv */
|
|
+# endif
|
|
#endif /* linux || __GLIBC__ */
|
|
|
|
#if (defined(__Lynx__) || defined(Lynx)) && (defined(i386) || defined(__i386__) || defined(__x86__) || defined(__powerpc__) || defined(__sparc__) || defined(sparc))
|
|
Index: xutils-dev-7.7+5ubuntu1+riscv64.1/xorg-cf-files/linux.cf
|
|
===================================================================
|
|
--- xutils-dev-7.7+5ubuntu1+riscv64.1.orig/xorg-cf-files/linux.cf
|
|
+++ xutils-dev-7.7+5ubuntu1+riscv64.1/xorg-cf-files/linux.cf
|
|
@@ -1111,6 +1111,15 @@ InstallNamedTargetNoClobber(install,file
|
|
# define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines -D_XSERVER64
|
|
#endif /* AArch64Architecture */
|
|
|
|
+#ifdef RISCV64Architecture
|
|
+# ifndef OptimizedCDebugFlags
|
|
+# define OptimizedCDebugFlags DefaultGcc2RISCV64Opt DefaultGcc2OptimizeOpt GccAliasingArgs
|
|
+# endif
|
|
+# define LinuxMachineDefines -D__riscv
|
|
+# define ServerOSDefines XFree86ServerOSDefines -DDDXTIME
|
|
+# define ServerExtraDefines -DGCCUSESGAS XFree86ServerDefines -D_XSERVER64
|
|
+#endif /* RISCV64Architecture */
|
|
+
|
|
#ifndef StandardDefines
|
|
# ifdef __linux__
|
|
# define StandardDefines -Dlinux LinuxMachineDefines LinuxSourceDefines
|
|
Index: xutils-dev-7.7+5ubuntu1+riscv64.1/xorg-cf-files/xfree86.cf
|
|
===================================================================
|
|
--- xutils-dev-7.7+5ubuntu1+riscv64.1.orig/xorg-cf-files/xfree86.cf
|
|
+++ xutils-dev-7.7+5ubuntu1+riscv64.1/xorg-cf-files/xfree86.cf
|
|
@@ -2067,6 +2067,12 @@ XFREE86JAPANESEDOCDIR = $(DOCDIR)/Japane
|
|
# endif
|
|
#endif
|
|
|
|
+#if HasGcc2 && defined(RISCV64Architecture)
|
|
+# ifndef DefaultGcc2RISCV64Opt
|
|
+# define DefaultGcc2RISCV64Opt DefaultGcc2OptimizeOpt GccAliasingArgs
|
|
+# endif
|
|
+#endif
|
|
+
|
|
#if HasGcc2 && defined(AlphaArchitecture)
|
|
# ifndef DefaultGcc2AxpOpt
|
|
# define DefaultGcc2AxpOpt DefaultGcc2OptimizeOpt GccAliasingArgs
|
|
Index: xutils-dev-7.7+5ubuntu1+riscv64.1/xorg-cf-files/xorg.cf
|
|
===================================================================
|
|
--- xutils-dev-7.7+5ubuntu1+riscv64.1.orig/xorg-cf-files/xorg.cf
|
|
+++ xutils-dev-7.7+5ubuntu1+riscv64.1/xorg-cf-files/xorg.cf
|
|
@@ -1584,6 +1584,12 @@ XFREE86JAPANESEDOCDIR = $(DOCDIR)/Japane
|
|
# endif
|
|
#endif
|
|
|
|
+#if HasGcc2 && defined(RISCV64Architecture)
|
|
+# ifndef DefaultGcc2RISCV64Opt
|
|
+# define DefaultGcc2RISCV64Opt DefaultGcc2OptimizeOpt GccAliasingArgs
|
|
+# endif
|
|
+#endif
|
|
+
|
|
#if HasGcc2 && defined(AMD64Architecture)
|
|
# ifndef DefaultGcc2AMD64Opt
|
|
# define DefaultGcc2AMD64Opt DefaultGcc2OptimizeOpt GccAliasingArgs
|