6958257: Add support for alpha
authorandrew
Thu, 03 Jun 2010 19:37:48 +0100
changeset 5639 730861c04a99
parent 5571 d260f892491e
child 5640 75aee3dfd68e
6958257: Add support for alpha Summary: Allow the Zero port to be built on alpha architectures Reviewed-by: ohair
corba/make/common/Defs-linux.gmk
--- a/corba/make/common/Defs-linux.gmk	Wed Jul 05 17:14:21 2017 +0200
+++ b/corba/make/common/Defs-linux.gmk	Thu Jun 03 19:37:48 2010 +0100
@@ -176,7 +176,16 @@
   CXXFLAGS_DBG	+= $(CC_LOWER_OPT)
 endif
 
-CPPFLAGS_COMMON = -D$(ARCH) -DARCH='"$(ARCH)"' -DLINUX $(VERSION_DEFINES) \
+CPP_ARCH_FLAGS = -DARCH='"$(ARCH)"'
+
+# Alpha arch does not like "alpha" defined (potential general arch cleanup issue here)
+ifneq ($(ARCH),alpha)
+  CPP_ARCH_FLAGS += -D$(ARCH)
+else
+  CPP_ARCH_FLAGS += -D_$(ARCH)_
+endif
+
+CPPFLAGS_COMMON = $(CPP_ARCH_FLAGS) -DLINUX $(VERSION_DEFINES) \
 		  -D_LARGEFILE64_SOURCE -D_GNU_SOURCE -D_REENTRANT
 
 ifeq ($(ARCH_DATA_MODEL), 64)