summaryrefslogtreecommitdiff
path: root/xc
diff options
context:
space:
mode:
authorgareth <gareth>2001-04-10 02:19:27 +0000
committergareth <gareth>2001-04-10 02:19:27 +0000
commit64df41630577e7e567d25a6606cf55fb9973dd34 (patch)
tree24ac19775b0915002bbdc0fde5446f13690047a8 /xc
parent524b1eb05f5f0bf5c116d38aeb80a6cd777db497 (diff)
Fix PPC optimization options.
Diffstat (limited to 'xc')
-rw-r--r--xc/config/cf/host.def15
-rw-r--r--xc/config/cf/kdrive.cf6
-rw-r--r--xc/config/cf/linux.cf2
-rw-r--r--xc/config/cf/xfree86.cf6
4 files changed, 20 insertions, 9 deletions
diff --git a/xc/config/cf/host.def b/xc/config/cf/host.def
index 3c6c69c89..2fe540b1e 100644
--- a/xc/config/cf/host.def
+++ b/xc/config/cf/host.def
@@ -1,16 +1,15 @@
#define DefaultGcc2AxpOpt -O2 -mcpu=ev6
-#define DefaultGcc2AxpOpt -O2 -mcpu=750
+#define DefaultGcc2PpcOpt -O2 -mcpu=750
#define DefaultGcc2i386Opt -O2
-#ifdef AlphaArchitecture
-#define LibraryCDebugFlags -O2 -mcpu=ev6
+#if defined(AlphaArchitecture)
+# define LibraryCDebugFlags -O2 -mcpu=ev6
+#elif defined(PpcArchitecture)
+# define LibraryCDebugFlags -O2 -mcpu=750
#else
-#ifdef PpcArchitecture
-#define LibraryCDebugFlags -O2 -mcpu=750
-#else
-#define LibraryCDebugFlags -O2
-#endif
+# define LibraryCDebugFlags -O2
#endif
+
#define BuildServersOnly YES
/*
* Turn this on to build xf86cfg and xf86config. It has the side-effect of
diff --git a/xc/config/cf/kdrive.cf b/xc/config/cf/kdrive.cf
index 2a9a43c4b..4e8b74cb0 100644
--- a/xc/config/cf/kdrive.cf
+++ b/xc/config/cf/kdrive.cf
@@ -211,6 +211,12 @@ XF86COMSRC=.
#endif
#endif
+#if defined(HasGcc2) && defined(PpcArchitecture)
+#ifndef DefaultGcc2PpcOpt
+#define DefaultGcc2PpcOpt -O2
+#endif
+#endif
+
#ifndef DefaultGcc2DebugOpt
#define DefaultGcc2DebugOpt -g
#endif
diff --git a/xc/config/cf/linux.cf b/xc/config/cf/linux.cf
index 38e1275a1..18340dd80 100644
--- a/xc/config/cf/linux.cf
+++ b/xc/config/cf/linux.cf
@@ -658,7 +658,7 @@ InstallNamedTargetNoClobber(install,file.ad,$(INSTAPPFLAGS),$(XAPPLOADDIR),class
#ifdef PpcArchitecture
# define DefaultCCOptions -fsigned-char
# ifndef OptimizedCDebugFlags
-# define OptimizedCDebugFlags -O2
+# define OptimizedCDebugFlags DefaultGcc2PpcOpt
# endif
# define LinuxMachineDefines -D__powerpc__
# define ServerOSDefines XFree86ServerOSDefines -DDDXTIME -DPART_NET
diff --git a/xc/config/cf/xfree86.cf b/xc/config/cf/xfree86.cf
index 370351934..69ef6a29a 100644
--- a/xc/config/cf/xfree86.cf
+++ b/xc/config/cf/xfree86.cf
@@ -1381,6 +1381,12 @@ XFREE86JAPANESEDOCDIR = $(DOCDIR)/Japanese
# endif
#endif
+#if HasGcc2 && defined(PpcArchitecture)
+# ifndef DefaultGcc2PpcOpt
+# define DefaultGcc2PpcOpt -O2
+# endif
+#endif
+
#ifndef DefaultGcc2DebugOpt
# define DefaultGcc2DebugOpt -g
#endif