diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 2006-02-10 21:51:19 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 2006-02-10 21:51:19 +0000 |
commit | 286c1ee482d3010d84c9f9606bb745a536572f31 (patch) | |
tree | da8a9b59b9381586d6bc359481860e303fa08e9f /include | |
parent | 25cd64d8779e7e4f48b842a407b942906c1c4017 (diff) | |
download | ATCD-286c1ee482d3010d84c9f9606bb745a536572f31.tar.gz |
ChangeLogTag:Fri Feb 10 22:49:07 UTC 2006 Ossama Othman <ossama_othman at symantec dot com>
Diffstat (limited to 'include')
-rw-r--r-- | include/makeinclude/platform_sunos5_sunc++.GNU | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/include/makeinclude/platform_sunos5_sunc++.GNU b/include/makeinclude/platform_sunos5_sunc++.GNU index c7b291061cc..6cd0ebc3102 100644 --- a/include/makeinclude/platform_sunos5_sunc++.GNU +++ b/include/makeinclude/platform_sunos5_sunc++.GNU @@ -65,7 +65,7 @@ endif # threads CC = cc CXX = CC -CC_VERSION = $(shell $(CXX) -V 2>&1) +CC_VERSION := $(shell $(CXX) -V 2>&1) ifeq (C++ 5.6,$(findstring C++ 5.6,$(CC_VERSION))) PLATFORM_STLPORT_CPPFLAGS = -library=stlport4 @@ -228,6 +228,24 @@ ifeq (0,$(exceptions)) endif endif # ! exceptions +ifeq ($(shared_libs), 1) + ifneq ($(static_libs_only), 1) + + # Sun Studio 8 or better has version greater than 5.3. + SUN_STUDIO_8_OR_BETTER := $(shell a=`echo $(CC_VERSION) | sed -e 's/[^0-9]*\([0-9]*\)\.\([0-9]*\).*$$/\1\2/g'`; if test "$$a" -gt 53; then echo 1; else echo 0; fi) + + # Take advantage of Sun Studio 8 (v5.5) symbol scopes to + # generate improved shared library binaries. + ifeq ($(SUN_STUDIO_8_OR_BETTER),1) + ifneq ($(no_hidden_visibility),1) + CCFLAGS += -xldscope=hidden + else + CPPFLAGS += -DACE_HAS_CUSTOM_EXPORT_MACROS=0 + endif # no_hidden_visibility + endif # Sun Studio 8 (C++ 5.5) or better. + endif # static_libs_only +endif # shared_libs + LD = $(CXX) ifeq ($(distrib),0) LDFLAGS += -R $(ACE_ROOT)/lib -R./ |