New configure flag --enable-profiling to compile and link with -pg (for

gprof)

svn-id: r32970
This commit is contained in:
Bertrand Augereau 2008-07-09 02:19:57 +00:00
parent a833c9dd86
commit d9f0753009

4
configure vendored
View File

@ -741,6 +741,10 @@ for ac_option in $@; do
--enable-release)
DEBFLAGS="-O2 -Wuninitialized"
;;
--enable-profiling)
CXXFLAGS="$CXXFLAGS -pg"
LDFLAGS="$LDFLAGS -pg"
;;
--with-sdl-prefix=*)
arg=`echo $ac_option | cut -d '=' -f 2`
_sdlpath="$arg:$arg/bin"