summaryrefslogtreecommitdiff
path: root/ACE/include/makeinclude/platform_linux.GNU
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2007-05-20 20:04:42 +0000
committerJohnny Willemsen <jwillemsen@remedy.nl>2007-05-20 20:04:42 +0000
commit266f2adf5ec36e3d25aba61b9d7b93b7e35b4ca9 (patch)
tree12f7e972cb9a95955e3e29c789e3ed2bf27d44dc /ACE/include/makeinclude/platform_linux.GNU
parent72c6318822f1f6dbd0e05b1ce524df7f2c09f0fa (diff)
downloadATCD-266f2adf5ec36e3d25aba61b9d7b93b7e35b4ca9.tar.gz
Sun May 20 20:03:55 UTC 2007 Johnny Willemsen <jwillemsen@remedy.nl>
Diffstat (limited to 'ACE/include/makeinclude/platform_linux.GNU')
-rw-r--r--ACE/include/makeinclude/platform_linux.GNU9
1 files changed, 8 insertions, 1 deletions
diff --git a/ACE/include/makeinclude/platform_linux.GNU b/ACE/include/makeinclude/platform_linux.GNU
index 4ef035c8343..2f046ec6aa2 100644
--- a/ACE/include/makeinclude/platform_linux.GNU
+++ b/ACE/include/makeinclude/platform_linux.GNU
@@ -120,7 +120,6 @@ PLATFORM_QT_CPPFLAGS ?= -I$(QTDIR)/include
PLATFORM_QT_LIBS ?= -lqt-mt
PLATFORM_QT_LDFLAGS ?= -L$(QTDIR)/lib
-OCFLAGS ?= -O3
PIC = -fPIC
AR = ar
ARFLAGS = rsuv
@@ -135,6 +134,14 @@ PRELIB = @true
#
include $(ACE_ROOT)/include/makeinclude/platform_g++_common.GNU
+# TAO with GCC 4.0.2 and -O3 seems to result in runtime issues, for example
+# the ForwardRequest PI test will fail. For GCC 4.0.2 we default to -O2
+ifeq ($(CXX_VERSION),4.0.2)
+ OCFLAGS ?= -O2
+else
+ OCFLAGS ?= -O3
+endif
+
CCFLAGS += $(CFLAGS) $(TEMPLATES_FLAG)
# Added line below to support "Executable Shared Object" files (as