summaryrefslogtreecommitdiff
path: root/include/makeinclude/platform_vxworks5.x_g++.GNU
diff options
context:
space:
mode:
Diffstat (limited to 'include/makeinclude/platform_vxworks5.x_g++.GNU')
-rw-r--r--include/makeinclude/platform_vxworks5.x_g++.GNU21
1 files changed, 14 insertions, 7 deletions
diff --git a/include/makeinclude/platform_vxworks5.x_g++.GNU b/include/makeinclude/platform_vxworks5.x_g++.GNU
index 76ca934af3c..cd871eebf20 100644
--- a/include/makeinclude/platform_vxworks5.x_g++.GNU
+++ b/include/makeinclude/platform_vxworks5.x_g++.GNU
@@ -39,13 +39,19 @@ ifeq (,$(findstring $(HOST_DIR)/bin,$PATH))
PATH := $(PATH):$(HOST_DIR)/bin
endif # PATH
-ifeq (,$(PERL_PATH))
- PERL_PATH = perl
-endif # ! PERL_PATH
+PERL_PATH = perl
+
+ifeq (win32,$(findstring win32,$(WIND_HOST_TYPE)))
+ #### GNU make on WIN32 needs quoted double quotes.
+ ACE_QUOTE ='"'
+else # ! win32 host
+ ACE_QUOTE ="
+endif # ! win32 host
#### BEGIN target CPU-specific settings
+
#### This is kind of messy so that it can support multiple targets.
#### You'll need to set CPU to a supported CPU using one of these
#### methods (unless your CPU is a PowerPC 604):
@@ -98,6 +104,7 @@ endif # I80486
endif # PPC860
endif # PPC604
+
#### END target CPU-specific settings
@@ -132,7 +139,7 @@ endif # ! static_libs
CC = cc$(TOOLENV)
CFLAGS += -D_REENTRANT -ansi -fno-builtin -fno-defer-pop \
- -fvolatile -nostdinc -nostdlib $(PIPE_OPT) -W -Wall
+ -fvolatile -nostdinc -nostdlib $(PIPE_OPT) -Wall
CCFLAGS += $(CFLAGS)
ifeq (,$(rtti))
#### Don't use RTTI even with egcs, because Tornado 1.0.x libraries
@@ -142,9 +149,9 @@ endif # rtti
DCFLAGS += -g
DLD = $(LD)
INCLDIRS += -I$(WIND_BASE)/target/h
-LD = $(PERL_PATH) $(ACE_ROOT)/bin/ace_ld \
- -C $(COMPILE.c) -traditional -- \
- -m munch -n nm$(TOOLENV) ld$(TOOLENV)
+LD = $(PERL_PATH) $(ACE_ROOT)/bin/ace_ld -c \
+ $(ACE_QUOTE)$(COMPILE.c) -traditional$(ACE_QUOTE) \
+ -m "munch" -n "nm$(TOOLENV)" ld$(TOOLENV)
LDFLAGS += -X -r
#### WindRiver only recommends -O, not -O2, with some CPUs, including
#### the i386 family. And -O2 causes some compilation failures.