From 1a03c2594780e24ee92a0c2ee49d22b16c3fda0c Mon Sep 17 00:00:00 2001 From: Jon Trulson Date: Mon, 6 Aug 2012 17:09:01 -0600 Subject: [PATCH] Enable PowerPC to be recognized by build. Patch from Douglas Mencken. --- cde/config/cf/linux.cf | 5 +++++ cde/config/imake/imakemdep.h | 14 ++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/cde/config/cf/linux.cf b/cde/config/cf/linux.cf index c48196a8..ec691d4a 100644 --- a/cde/config/cf/linux.cf +++ b/cde/config/cf/linux.cf @@ -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__ diff --git a/cde/config/imake/imakemdep.h b/cde/config/imake/imakemdep.h index 08316136..2ec32e27 100644 --- a/cde/config/imake/imakemdep.h +++ b/cde/config/imake/imakemdep.h @@ -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 -- 2.25.1