summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authoroci <oci@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-08-25 14:24:22 +0000
committeroci <oci@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-08-25 14:24:22 +0000
commit161e022816d5355680a1c035b2fb702c9117e5cd (patch)
treeb53f3269938b7d7d43ed28464cbf1376d3bd5971 /include
parentb6b966651d77e1d442aadfa184adb7f8c1212082 (diff)
downloadATCD-161e022816d5355680a1c035b2fb702c9117e5cd.tar.gz
ChangeLogTag: Fri Aug 25 09:22:11 2000 Chad Elliott <elliott_c@ociweb.com>
Diffstat (limited to 'include')
-rw-r--r--include/makeinclude/platform_sunos5_sunc++.GNU12
1 files changed, 9 insertions, 3 deletions
diff --git a/include/makeinclude/platform_sunos5_sunc++.GNU b/include/makeinclude/platform_sunos5_sunc++.GNU
index eeca189f5d3..72b92af9e1c 100644
--- a/include/makeinclude/platform_sunos5_sunc++.GNU
+++ b/include/makeinclude/platform_sunos5_sunc++.GNU
@@ -87,7 +87,7 @@ 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 (Compilers 5,$(findstring Compilers 5,$(CC_VERSION)))
+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.
@@ -104,7 +104,13 @@ ifeq (Compilers 5,$(findstring Compilers 5,$(CC_VERSION)))
#### 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) -library=iostream,no%Cstd -instances=explicit
+ 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
@@ -144,7 +150,7 @@ endif
LIBS += -lsocket -ldl -lnsl -lgen -lposix4
endif # orbix
-ifeq (Compilers 5,$(findstring Compilers 5,$(CC_VERSION)))
+ifeq (C++ 5,$(findstring C++ 5,$(CC_VERSION)))
ifeq ($(compat4),1)
COMPAT_LIBDIR=/opt/SUNWspro/lib/CC4
LIBS += -L$(COMPAT_LIBDIR) -lC