aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-01-10 23:29:15 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2009-01-10 23:29:15 +0000
commitfd3ab99dfd48bc11c525d56ef9e81ba5a9e24d79 (patch)
tree7d218b09a1836c83c4e9917bbf401789cae3a4b1
parent317ad4388fe45f6d52a34968d9104e4f4527f843 (diff)
downloadpaludis-fd3ab99dfd48bc11c525d56ef9e81ba5a9e24d79.tar.gz
paludis-fd3ab99dfd48bc11c525d56ef9e81ba5a9e24d79.tar.xz
stop pythons from eating all your rams
-rw-r--r--configure.ac9
-rw-r--r--python/Makefile.am4
2 files changed, 13 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index dcc94e8..5a8c8b4 100644
--- a/configure.ac
+++ b/configure.ac
@@ -790,6 +790,15 @@ AC_MSG_RESULT([$PALUDIS_CXXFLAGS])
PALUDIS_CXXFLAGS_NO_STRICT_ALIASING=$PALUDIS_CXXFLAGS
PALUDIS_CXXFLAGS=$old_PALUDIS_CXXFLAGS
AC_SUBST([PALUDIS_CXXFLAGS_NO_STRICT_ALIASING])
+
+AC_MSG_CHECKING([whether we can turn off debugging to avoid pythons eating all your rams])
+old_PALUDIS_CXXFLAGS=$PALUDIS_CXXFLAGS
+PALUDIS_CXXFLAGS=
+CHECK_CXXFLAG([-g0])
+AC_MSG_RESULT([$PALUDIS_CXXFLAGS])
+PALUDIS_CXXFLAGS_NO_DEBUGGING=$PALUDIS_CXXFLAGS
+PALUDIS_CXXFLAGS=$old_PALUDIS_CXXFLAGS
+AC_SUBST([PALUDIS_CXXFLAGS_NO_DEBUGGING])
dnl }}}
dnl {{{ sandbox
diff --git a/python/Makefile.am b/python/Makefile.am
index ca94fb3..4c18ff6 100644
--- a/python/Makefile.am
+++ b/python/Makefile.am
@@ -12,6 +12,10 @@ AM_CXXFLAGS = -I$(top_srcdir) -I$(srcdir)/ \
@PALUDIS_CXXFLAGS_VISIBILITY@ \
@PALUDIS_CXXFLAGS_NO_STRICT_ALIASING@
+# need this to go after the user's flags. -g is useless in here anyway,
+# and boost.python makes g++ eat silly amounts of memory.
+CXXFLAGS += @PALUDIS_CXXFLAGS_NO_DEBUGGING@
+
DEFS= \
-DSYSCONFDIR=\"$(sysconfdir)\" \
-DDATADIR=\"$(datadir)\" \