diff options
author | jtc <jtc@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2006-03-27 04:09:32 +0000 |
---|---|---|
committer | jtc <jtc@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2006-03-27 04:09:32 +0000 |
commit | 7a07b060a6ff65d3b032936677c1c5eb8b206187 (patch) | |
tree | 52782059dc887f1b678b5b6fac138a3057ba4c87 | |
parent | 175a7cb76214211750d2bffc3cf5b3695d88ec78 (diff) | |
download | ATCD-7a07b060a6ff65d3b032936677c1c5eb8b206187.tar.gz |
ChangeLogTag: Mon Mar 27 03:57:38 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com>
-rw-r--r-- | ChangeLog | 9 | ||||
-rw-r--r-- | m4/compiler.m4 | 49 |
2 files changed, 33 insertions, 25 deletions
diff --git a/ChangeLog b/ChangeLog index 2c6d9926a7b..e19962fe87f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +Mon Mar 27 03:57:38 UTC 2006 J.T. Conklin <jtc@acorntoolworks.com> + + * m4/compiler.m4: + + Check whether "gcc" supports symbol visibility options by + invoking the compiler with those options. This addresses + configure failures due to icc's incomplete gcc emulation. + Should fix bugzilla issues 2338 and 2384. + Sun Mar 26 21:40:10 2006 Douglas C. Schmidt <schmidt@cse.wustl.edu> * ace/TSS_T.cpp: Added patches to silence the type-punning warning diff --git a/m4/compiler.m4 b/m4/compiler.m4 index edddd5be8c9..dc0346e0174 100644 --- a/m4/compiler.m4 +++ b/m4/compiler.m4 @@ -375,33 +375,32 @@ dnl @todo Clean up / consolidate these conditionals ACE_CXXFLAGS="$ACE_CXXFLAGS -W -Wall -Wpointer-arith" fi + dnl Symbol Visibility flags + dnl Take advantage of visibility attributes when using g++ 4.0 or + dnl better. + if test "$GXX" = yes; then + ACE_CHECK_CXXFLAGS([fvisbility=hidden], + [ + ACE_CXXFLAGS="$ACE_CXXFLAGS -fvisibility=hidden" + AC_DEFINE([ACE_HAS_CUSTOM_EXPORT_MACROS]) + AC_DEFINE([ACE_Proper_Export_Flag], + [__attribute__ ((visibility("default")))]) + ]) + ACE_CHECK_CXXFLAGS([fvisibility-inlines-hidden], + [ + ACE_CXXFLAGS="$ACE_CXXFLAGS -fvisibility-inlines-hidden" + ]) + fi + dnl Additional flags if test "$GXX" = yes; then - dnl Take advantage of visibility attributes when using g++ 4.0 or - dnl better. - if test "$ACE_GXX_MAJOR_VERSION" -ge 4; then - case "$host_os" in - darwin*) - ;; - - *) - AC_MSG_NOTICE([enabling GNU G++ visibility attribute support]) - ACE_GXX_VISIBILITY_FLAGS="-fvisibility=hidden -fvisibility-inlines-hidden" - ACE_CXXFLAGS="$ACE_CXXFLAGS $ACE_GXX_VISIBILITY_FLAGS" - AC_DEFINE([ACE_HAS_CUSTOM_EXPORT_MACROS]) - AC_DEFINE([ACE_Proper_Export_Flag], - [__attribute__ ((visibility("default")))]) - ;; - esac - else - case `$CXX --version` in - 2.9*) - if test "$ace_user_enable_exceptions" != yes; then - ACE_CXXFLAGS="$ACE_CXXFLAGS -fcheck-new" - fi - ;; - esac - fi + case `$CXX --version` in + 2.9*) + if test "$ace_user_enable_exceptions" != yes; then + ACE_CXXFLAGS="$ACE_CXXFLAGS -fcheck-new" + fi + ;; + esac dnl if test "$ace_user_enable_repo" = no; then dnl ACE_CXXFLAGS="$ACE_CXXFLAGS -fno-implicit-templates" |