Merge
authormikejwre
Wed, 09 Jun 2010 18:56:22 -0700
changeset 5640 75aee3dfd68e
parent 5638 e4cddeb51b2b (current diff)
parent 5639 730861c04a99 (diff)
child 5641 148c121f60fe
Merge
--- a/corba/make/common/Defs-linux.gmk	Mon Jun 07 16:15:35 2010 -0700
+++ b/corba/make/common/Defs-linux.gmk	Wed Jun 09 18:56:22 2010 -0700
@@ -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)