aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBertrand Augereau2008-07-09 02:19:57 +0000
committerBertrand Augereau2008-07-09 02:19:57 +0000
commitd9f07530092f511eba8f4d38d767849d6a5cdc4a (patch)
tree187b6f9b665b91667af1d03c9ea2f84046b6491c
parenta833c9dd86ab3c5ca3ff93ebce05b4e06ebc733d (diff)
downloadscummvm-rg350-d9f07530092f511eba8f4d38d767849d6a5cdc4a.tar.gz
scummvm-rg350-d9f07530092f511eba8f4d38d767849d6a5cdc4a.tar.bz2
scummvm-rg350-d9f07530092f511eba8f4d38d767849d6a5cdc4a.zip
New configure flag --enable-profiling to compile and link with -pg (for
gprof) svn-id: r32970
-rwxr-xr-xconfigure4
1 files changed, 4 insertions, 0 deletions
diff --git a/configure b/configure
index 3ce53e9d17..0e38034a35 100755
--- a/configure
+++ b/configure
@@ -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"