From d189337efe2289a9e69c9ad9b387cd0ea4e62f63 Mon Sep 17 00:00:00 2001 From: Ossama Othman Date: Mon, 5 Apr 1999 00:33:44 +0000 Subject: * m4/compiler.m4: Added `-features=castop' compiler flag and completed support for `-features=rtti' via `--enable-rtti'. These flags only work for Sun C++ 4.2. Added support for the `-noex' Sun C++ compiler flag when the user disables exception handling. --- m4/compiler.m4 | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'm4') diff --git a/m4/compiler.m4 b/m4/compiler.m4 index 32b76cc162f..1b8adc3f68a 100644 --- a/m4/compiler.m4 +++ b/m4/compiler.m4 @@ -162,10 +162,22 @@ AC_DEFUN(ACE_SET_COMPILER_FLAGS, dnl *solaris2*) case "$CXX" in CC) + dnl Some flags only work with Sun C++ 4.2 + if (CC -V 2>&1 | egrep 'Compilers 4\.2' > /dev/null); then + CXXFLAGS="$CXXFLAGS -features=castop" + if test "$ace_user_enable_rtti" = yes; then + CXXFLAGS="$CXXFLAGS -features=rtti" + fi + fi + + if test "$ace_user_enable_exceptions" != yes; then + CXXFLAGS="$CXXFLAGS -noex" + fi + CXXFLAGS="$CXXFLAGS" ACE_CXXFLAGS="$ACE_CXXFLAGS" - DCXXFLAGS="$DCXXFLAGS" - OCXXFLAGS="$OCXXFLAGS" + DCXXFLAGS="$DCXXFLAGS -g" + OCXXFLAGS="$OCXXFLAGS -O" LDFLAGS="$LDFLAGS -xildoff" ;; esac -- cgit v1.2.1