aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorAvatar Saleem Abdulrasool <compnerd@compnerd.org> 2016-01-14 12:01:03 -0800
committerAvatar Saleem Abdulrasool <compnerd@compnerd.org> 2016-01-17 10:04:48 -0800
commit02f339e87ab1a864a967a7b7de05bd658f9dbedf (patch)
tree608a875d2daca5f90d9b8fe3988232c9b3a2bbfc /configure.ac
parentd34bba6a8a9457264a94326db3fdf84e69000dc9 (diff)
downloadpaludis-02f339e87ab1a864a967a7b7de05bd658f9dbedf.tar.gz
paludis-02f339e87ab1a864a967a7b7de05bd658f9dbedf.tar.xz
build: unconditionally use visibility flags
Remove the last remnants of icc support as the current released versions do not support C++11 and we intend to use clang as the alternate compiler. This cleans up the compile flags to remove the now obsoleted definition (-DPALUDIS_USE_VISIBILITY), the unnecessary compile time checks, and the handling for ICC in the macros.
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac28
1 files changed, 2 insertions, 26 deletions
diff --git a/configure.ac b/configure.ac
index dab26fcc0..68ce726c7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -314,7 +314,6 @@ PALUDIS_CXXFLAGS_NO_WEXTRA=
PALUDIS_CXXFLAGS_NO_WWRITE_STRINGS=
PALUDIS_CXXFLAGS_NO_WMISSING_NORETURN=
PALUDIS_CXXFLAGS_NO_STRICT_ALIASING=
-PALUDIS_CXXFLAGS_VISIBILITY=
AC_DEFUN([CHECK_CXXFLAG], [
save_CXXFLAGS=$CXXFLAGS
@@ -389,6 +388,8 @@ if test x"$cxxflag_success" = x"no" ; then
CHECK_CXXFLAG([-std=c++0x])
fi
+CHECK_CXXFLAG([-fvisibility=hidden])
+CHECK_CXXFLAG([-fvisibility-inlines-hidden])
AC_SUBST([PALUDIS_CXXFLAGS])
AC_SUBST([PALUDIS_CXXFLAGS_NO_WOLD_STYLE_CAST])
@@ -447,31 +448,6 @@ dnl }}}
CXXFLAGS="$save_CXXFLAGS"
-dnl {{{ visibility support
-AC_MSG_CHECKING([whether to enable visibility])
-AC_PREPROC_IFELSE([AC_LANG_SOURCE([
-#if ! defined(__GNUC__) || defined(__clang__)
-# error no/broken visibility
-#endif
-])],
- [AC_MSG_RESULT([yes])
- AC_MSG_CHECKING([for appropriate compiler visibility flags])
- old_PALUDIS_CXXFLAGS=$PALUDIS_CXXFLAGS
- PALUDIS_CXXFLAGS=
- CHECK_CXXFLAG([-fvisibility-inlines-hidden])
- CHECK_CXXFLAG([-fvisibility=hidden])
- AC_MSG_RESULT([$PALUDIS_CXXFLAGS])
- PALUDIS_CXXFLAGS_VISIBILITY="$PALUDIS_CXXFLAGS -DPALUDIS_ENABLE_VISIBILITY=1"
- PALUDIS_CXXFLAGS=$old_PALUDIS_CXXFLAGS
- PALUDIS_ENABLE_VISIBILITY=1
- ],
- [AC_MSG_RESULT([no])
- PALUDIS_ENABLE_VISIBILITY=0
- ])
-AC_SUBST([PALUDIS_ENABLE_VISIBILITY])
-AC_SUBST([PALUDIS_CXXFLAGS_VISIBILITY])
-dnl }}}
-
dnl {{{ disabling strict aliasing for boost bindings
AC_MSG_CHECKING([how to disable strict aliasing when using dodgy Boost libraries])
old_PALUDIS_CXXFLAGS=$PALUDIS_CXXFLAGS