Bugzilla bug #9155: use -library=iostream so that Sun Workshop

5.0 can work with old style iostreams.  Thanks to
Tim McNerney <mumbly@netcom.com> for suggesting this fix.
This commit is contained in:
wtc%netscape.com 1999-07-01 23:19:52 +00:00
parent 7486db5985
commit 25c2c67cd9

View File

@ -25,6 +25,16 @@ include $(MOD_DEPTH)/config/config.mk
ifeq ($(OS_ARCH),SunOS)
ifeq ($(OS_RELEASE),4.1.3_U1)
OPTIMIZER =
else
# The C++ compiler in Workshop 5.0 uses standard
# iostreams as default. -library=iostream will
# allow Workshop 5.0 to work with classic iostreams.
ifndef NS_USE_GCC
CCC_VERSION := $(shell $(CCC) -V 2>&1)
ifneq (,$(findstring 5.0,$(CCC_VERSION)))
CCC_ONLY_FLAGS += -library=iostream
endif
endif
endif
endif