I noticed that several packages build Sage with the -g option to ,
which adds debugging information. This has 3 downsides

1) The binaries are slower
2) The binaries are bigger
3) Possibly takes longer to compile - I've not verified this, but I
suspect it does.

I think it would be a good idea to remove the -g flag in general. As
far as I am aware, there is the SAGE_DEBUG variable, which should be
set to 1 for debugging. I'm doing this from memory, not testing it as
I write, but

#!/bin/bash
debug="${SAGE_DEBUG-0}"

if [ x$debug = "x1" ] ; then
  CFLAGS="$CFLAGS -g"
fi
should add -g only when the environment variable SAGE_DEBUG is set to 1.


Dave

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-devel@googlegroups.com
To unsubscribe from this group, send email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to