diff options
Diffstat (limited to 'ACE/include/makeinclude/platform_vxworks5.5.x.GNU')
-rw-r--r-- | ACE/include/makeinclude/platform_vxworks5.5.x.GNU | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/ACE/include/makeinclude/platform_vxworks5.5.x.GNU b/ACE/include/makeinclude/platform_vxworks5.5.x.GNU index de35dabe87f..6aa3c3d38aa 100644 --- a/ACE/include/makeinclude/platform_vxworks5.5.x.GNU +++ b/ACE/include/makeinclude/platform_vxworks5.5.x.GNU @@ -156,6 +156,24 @@ include $(TARGET_DIR)/make/defs.$(WIND_HOST_TYPE) include $(TARGET_DIR)/make/defs.$(PRJ_TYPE) include $(TARGET_DIR)/tool/$(TOOL_FAMILY)/make.$(CPU)$(TOOL) +no_cflags_ansi ?= 0 +ifeq ($(no_cflags_ansi), 1) + ifeq ("$(TOOL_FAMILY)","gnu") + CC_COMPILER := $(filter-out -ansi, $(CC_COMPILER)) + else + CC_COMPILER := $(filter-out -Xansi, $(CC_COMPILER)) + endif +endif + +no_ccflags_ansi ?= 0 +ifeq ($(no_ccflags_ansi), 1) + ifeq ("$(TOOL_FAMILY)","gnu") + C++_COMPILER := $(filter-out -ansi, $(C++_COMPILER)) + else + C++_COMPILER := $(filter-out -Xansi, $(C++_COMPILER)) + endif +endif + ## make sure we don't use that stupid, crippled vxrm.bat script. override RM=rm -f @@ -278,16 +296,6 @@ CCFLAGS += $(C++FLAGS) PIC = -no_cflags_ansi ?= 0 -ifeq ($(no_cflags_ansi), 1) - CFLAGS := $(filter-out -ansi, $(CFLAGS)) -endif - -no_ccflags_ansi ?= 0 -ifeq ($(no_ccflags_ansi), 1) - CCFLAGS := $(filter-out -ansi, $(CCFLAGS)) -endif - ifeq ($(VXWORKSLINK),1) ifdef repo |