aboutsummaryrefslogtreecommitdiff
path: root/configure.ac
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-08-20 19:13:08 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2007-08-20 19:13:08 +0000
commitffed8310f372885ab6ca93205bf26615879eec6f (patch)
tree04cf0961a6e1465fc764d2a66ee07fb3c600339d /configure.ac
parent1541b4d75866bb873e3762eff5de3c10323971b5 (diff)
downloadpaludis-ffed8310f372885ab6ca93205bf26615879eec6f.tar.gz
paludis-ffed8310f372885ab6ca93205bf26615879eec6f.tar.xz
Python needs -fno-strict-aliasing
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac10
1 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index a2cd3eadd..96e6bed2f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -494,6 +494,7 @@ PALUDIS_CXXFLAGS_NO_WEXTRA=
PALUDIS_CXXFLAGS_NO_WWRITE_STRINGS=
PALUDIS_CXXFLAGS_NO_WMISSING_NORETURN=
PALUDIS_CXXFLAGS_WITHOUT_PEDANTIC=
+PALUDIS_CXXFLAGS_NO_STRICT_ALIASING=
PALUDIS_CXXFLAGS_VISIBILITY=
AC_MSG_CHECKING([whether our compiler is iccy])
AC_COMPILE_IFELSE([
@@ -613,6 +614,15 @@ else
fi
AC_SUBST([PALUDIS_ENABLE_VISIBILITY])
AC_SUBST([PALUDIS_CXXFLAGS_VISIBILITY])
+
+AC_MSG_CHECKING([how to disable strict aliasing when using dodgy Boost libraries])
+old_PALUDIS_CXXFLAGS=$PALUDIS_CXXFLAGS
+PALUDIS_CXXFLAGS=
+CHECK_CXXFLAG([-fno-strict-aliasing])
+AC_MSG_RESULT([$PALUDIS_CXXFLAGS])
+PALUDIS_CXXFLAGS_NO_STRICT_ALIASING=$PALUDIS_CXXFLAGS
+PALUDIS_CXXFLAGS=$old_PALUDIS_CXXFLAGS
+AC_SUBST([PALUDIS_CXXFLAGS_NO_STRICT_ALIASING])
dnl }}}
dnl {{{ sandbox