summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkitty <kitty@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-02-07 01:27:31 +0000
committerkitty <kitty@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-02-07 01:27:31 +0000
commitdeb01b13adeb4306989cb47c87b240f9e446fc34 (patch)
treeba10d2475ce02bf9a7dc0d8d39df066d3fd71678
parenta652d7865291c2c09da29abf2d52772ca67d5e7c (diff)
downloadATCD-deb01b13adeb4306989cb47c87b240f9e446fc34.tar.gz
Tue Feb 6 19:23:16 2001 Krishnakumar B <kitty@cs.wustl.edu>
* include/makeinclude/platform_sunos5_sunc++.GNU: Complete reverting the changes made by Irfan on Sat Jan 27 01:06:09 2001. This file was missed in the last revert done by me.
-rw-r--r--include/makeinclude/platform_sunos5_sunc++.GNU45
1 files changed, 28 insertions, 17 deletions
diff --git a/include/makeinclude/platform_sunos5_sunc++.GNU b/include/makeinclude/platform_sunos5_sunc++.GNU
index 009338193c9..549b7c9dd31 100644
--- a/include/makeinclude/platform_sunos5_sunc++.GNU
+++ b/include/makeinclude/platform_sunos5_sunc++.GNU
@@ -87,23 +87,34 @@ ifeq (Compilers 4.2,$(findstring Compilers 4.2,$(CC_VERSION)))
#### Create template repository to avoid compiler warning.
TEMPLATE_REPOSITORY = Templates.DB
else # ! 4.2
-ifeq (C++ 5,$(findstring C++ 5,$(CC_VERSION)))
- #### CC 5.0 or later
- #### Inlining appears to cause link problems with early releases of
- #### CC 5.0.
- inline = 0
-
- CCFLAGS += $(CFLAGS)
-
- #### If compat=4 is desired, set up for that. There are syntactic diffs
- #### in the compatibility modes, but here all we need to be concerned with
- #### is turning on -compat=4, and not trying to enable the new libraries.
- #### RTTI may work, but has not been tested. To try it, cut/paste the
- #### rtti conditions from the 4.2 section, above.
- ifeq ($(compat4),1)
- CCFLAGS += -compat=4 -DACE_LACKS_RTTI -instances=explicit
- endif # compat4 requested
-endif # CC 5.0 or later
+ ifeq (C++ 5,$(findstring C++ 5,$(CC_VERSION)))
+ #### CC 5.0 or later
+ #### Inlining appears to cause link problems with early releases of
+ #### CC 5.0.
+ inline = 0
+
+ CCFLAGS += $(CFLAGS)
+
+ #### If compat=4 is desired, set up for that. There are syntactic diffs
+ #### in the compatibility modes, but here all we need to be concerned with
+ #### is turning on -compat=4, and not trying to enable the new libraries.
+ #### RTTI may work, but has not been tested. To try it, cut/paste the
+ #### rtti conditions from the 4.2 section, above.
+ ifeq ($(compat4),1)
+ CCFLAGS += -compat=4 -DACE_LACKS_RTTI -instances=explicit
+ else
+ #### Support RTTI by default. And, use explicit template instantiation
+ #### because automatic instantiation appears to be broken, at least
+ #### with early releases of CC 5.0. And, use old iostreams.
+ CCFLAGS += $(CFLAGS) -instances=explicit
+ ifeq (C++ 5.0,$(findstring C++ 5.0,$(CC_VERSION)))
+ CCFLAGS += -library=iostream,no%Cstd
+ else
+ #### SunCC 5.1 seems to need the std cpp lib
+ CCFLAGS += -library=iostream
+ endif # CC 5.0
+ endif # compat4 requested
+ endif # CC 5.0 or later
endif # ! 4.2
DCFLAGS += -g