diff options
author | Ossama Othman <ossama-othman@users.noreply.github.com> | 1999-04-05 00:33:44 +0000 |
---|---|---|
committer | Ossama Othman <ossama-othman@users.noreply.github.com> | 1999-04-05 00:33:44 +0000 |
commit | 395620114c7ce80bbe9909ba4fcba34eabc6adb8 (patch) | |
tree | 8fb7b3c86157db5ff1a808bcee531cd091a1623e /m4 | |
parent | ff2d61d065fd4499a0434c6ed386f49504333248 (diff) | |
download | ATCD-395620114c7ce80bbe9909ba4fcba34eabc6adb8.tar.gz |
* 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.
Diffstat (limited to 'm4')
-rw-r--r-- | m4/compiler.m4 | 16 |
1 files changed, 14 insertions, 2 deletions
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 |