Enable PowerPC to be recognized by build.
authorJon Trulson <jon@radscan.com>
Mon, 6 Aug 2012 23:09:01 +0000 (17:09 -0600)
committerJon Trulson <jon@radscan.com>
Mon, 6 Aug 2012 23:09:01 +0000 (17:09 -0600)
Patch from Douglas Mencken.

cde/config/cf/linux.cf
cde/config/imake/imakemdep.h

index c48196a8c0c1f4be898f1854fd5fe5b606873114..ec691d4a1a01f76ccac12b425d7cd7ae7f396c6e 100644 (file)
@@ -159,6 +159,11 @@ XCOMM binutils:  (LinuxBinUtilsMajorVersion)
 #endif
 #endif /* AMD64Architecture */
 
+#ifdef PpcArchitecture
+#define OptimizedCDebugFlags    -O2
+#define LinuxMachineDefines     -D__powerpc__
+#endif /* PpcArchitecture */
+
 #ifdef AlphaArchitecture
 #define OptimizedCDebugFlags   -O2
 #define LinuxMachineDefines    -D__alpha__
index 08316136b3def1394ff2a45b79bf325729b9bf8c..2ec32e27b051c2dec07dfdbac42c676733cac384 100644 (file)
@@ -325,10 +325,24 @@ char *cpp_argv[ARGUMENTS] = {
 # ifdef __x86_64__
         "-D__amd64__",
 # endif
+# ifdef __ppc__
+        {"-D__powerpc__", "1"},
+# endif
+# ifdef __ppc64__
+        {"-D__powerpc64__", "1"},
+# endif
+# ifdef __powerpc__
+        {"-D__powerpc__", "1"},
+# endif
+# ifdef __powerpc64__
+        {"-D__powerpc64__", "1"},
+# endif
+
 # ifdef __GNUC__
        "-traditional",
 # endif
 #endif
+
 #ifdef M4330
        "-DM4330",      /* Tektronix */
 #endif