summaryrefslogtreecommitdiff
path: root/include/makeinclude/platform_vxworks5.x_g++.GNU
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-09-22 00:38:01 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-09-22 00:38:01 +0000
commitb594dffb1f3f3ace614c4961ef5673de75951bb6 (patch)
tree9dd5ae3081d2ecfc279f84d883bd0bc7a50521a5 /include/makeinclude/platform_vxworks5.x_g++.GNU
parentfcc2f59539e74920206c62bc5a342a12d742ab3c (diff)
downloadATCD-b594dffb1f3f3ace614c4961ef5673de75951bb6.tar.gz
moved -O out of wrapper_macros.GNU and into each platform file to support "optimize" flag
Diffstat (limited to 'include/makeinclude/platform_vxworks5.x_g++.GNU')
-rw-r--r--include/makeinclude/platform_vxworks5.x_g++.GNU6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/makeinclude/platform_vxworks5.x_g++.GNU b/include/makeinclude/platform_vxworks5.x_g++.GNU
index 4e9aaa41b1a..de1332731d9 100644
--- a/include/makeinclude/platform_vxworks5.x_g++.GNU
+++ b/include/makeinclude/platform_vxworks5.x_g++.GNU
@@ -10,6 +10,7 @@
#### ace/IOStream_T.cpp for an explanation and example.
debug = 1
+optimize = 1
static_libs_only = 1
@@ -48,7 +49,7 @@ BIN_DIR = $(HOST_DIR)/bin
CC = cc$(TOOLENV)
CXX = g++$(TOOLENV)
-CFLAGS += -DVXWORKS -D_REENTRANT -ansi -fno-builtin -fno-defer-pop -fvolatile -nostdinc -nostdlib -O -pipe -Wall
+CFLAGS += -DVXWORKS -D_REENTRANT -ansi -fno-builtin -fno-defer-pop -fvolatile -nostdinc -nostdlib -pipe -Wall
#### Note: -f-no-implicit-templates doesn't seem to work well with
#### g++ cygnus-2.7.2-960126 for pc486 target. Some
#### member functions don't get instantiated. Wind River knows
@@ -58,6 +59,9 @@ DCFLAGS += -g
INCLDIRS += -I$(WIND_BASE)/target/h
LD = ld$(TOOLENV)
LDFLAGS += -X -r .obj/__ctordtor.o
+#### WindRiver only recommends -O, not -O2, with some CPUs, including
+#### the i386 family.
+OCFLAGS += -O
PIC =
AR = ar$(TOOLENV)
ARFLAGS = rv