summaryrefslogtreecommitdiff
path: root/ACE/include/makeinclude/platform_sunos5_sunc++.GNU
diff options
context:
space:
mode:
authormitza <mitza@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2008-09-16 17:54:04 +0000
committermitza <mitza@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2008-09-16 17:54:04 +0000
commit76e3258cc42d7aeb9f2a2bdea1069ae8ae2f1938 (patch)
tree69172f9cbbffd7d9c4a02a845d11966712b29402 /ACE/include/makeinclude/platform_sunos5_sunc++.GNU
parentb9896d1995a159e93188d862ba25242877017366 (diff)
downloadATCD-76e3258cc42d7aeb9f2a2bdea1069ae8ae2f1938.tar.gz
ChangeLogTag: Tue Sep 16 17:54:56 UTC 2008 Adam Mitz <mitza@ociweb.com>
Diffstat (limited to 'ACE/include/makeinclude/platform_sunos5_sunc++.GNU')
-rw-r--r--ACE/include/makeinclude/platform_sunos5_sunc++.GNU18
1 files changed, 18 insertions, 0 deletions
diff --git a/ACE/include/makeinclude/platform_sunos5_sunc++.GNU b/ACE/include/makeinclude/platform_sunos5_sunc++.GNU
index 4af504e9c72..5bf5127adaf 100644
--- a/ACE/include/makeinclude/platform_sunos5_sunc++.GNU
+++ b/ACE/include/makeinclude/platform_sunos5_sunc++.GNU
@@ -111,6 +111,7 @@ ifeq (C++ 5,$(findstring C++ 5,$(CC_VERSION)))
inline = 0
else # ! 5.1
inline ?= 1
+ exceptions ?= 1
endif # 5.2 or greater
endif #! 5.0
@@ -174,6 +175,23 @@ CCFLAGS += $(TEMPLATES_FLAG)
#### XXX: Shouldn't this go into a compiler version specific guard ???
CPPFLAGS += -DSUN_CC_HAS_PVFC_BUG
+#### Exception handling breaks on MP machines prior to Sun C++ 4.2
+#### with jumbo patch 104631-02, see ace/config-sunos5.5.h.
+#### If you are using a version of Sun C++ prior to 4,2, or haven't
+#### applied that jumbo patch to your 4.2, or don't want to pay the
+#### performance penalty of exception handling, then use the default
+#### of no exceptions. If you want to enable exception handling,
+#### add "exceptions=1" to your "make" invocation.
+ifeq (0,$(exceptions))
+ CCFLAGS += -noex
+ ifeq (C++ 5.6,$(findstring C++ 5.6,$(CC_VERSION)))
+ override stlport = 1
+ else
+ ifeq (C++ 5.7,$(findstring C++ 5.7,$(CC_VERSION)))
+ override stlport = 1
+ endif
+ endif
+endif # ! exceptions
ifeq ($(shared_libs), 1)
ifneq ($(static_libs_only), 1)