aboutsummaryrefslogtreecommitdiff
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
parent1541b4d75866bb873e3762eff5de3c10323971b5 (diff)
downloadpaludis-ffed8310f372885ab6ca93205bf26615879eec6f.tar.gz
paludis-ffed8310f372885ab6ca93205bf26615879eec6f.tar.xz
Python needs -fno-strict-aliasing
-rw-r--r--configure.ac10
-rw-r--r--python/Makefile.am3
2 files changed, 12 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index a2cd3ea..96e6bed 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
diff --git a/python/Makefile.am b/python/Makefile.am
index f839dc0..70faaef 100644
--- a/python/Makefile.am
+++ b/python/Makefile.am
@@ -9,7 +9,8 @@ AM_CXXFLAGS = -I$(top_srcdir) -I$(srcdir)/ \
@PALUDIS_CXXFLAGS_NO_WOLD_STYLE_CAST@ \
@PALUDIS_CXXFLAGS_NO_WWRITE_STRINGS@ \
@PALUDIS_CXXFLAGS_NO_WMISSING_NORETURN@ \
- @PALUDIS_CXXFLAGS_VISIBILITY@
+ @PALUDIS_CXXFLAGS_VISIBILITY@ \
+ @PALUDIS_CXXFLAGS_NO_STRICT_ALIASING@
DEFS= \
-DSYSCONFDIR=\"$(sysconfdir)\" \