[Scummvm-cvs-logs] scummvm-tools master -> aaf89b4359ee391708cb73dee855c691e96372a9
digitall
dgturner at iee.org
Sat Dec 1 09:57:59 CET 2012
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm-tools' repo located at https://github.com/scummvm/scummvm-tools .
Summary:
aaf89b4359 TOOLS: Sync configure --enable-profiling implementation with main repo.
Commit: aaf89b4359ee391708cb73dee855c691e96372a9
https://github.com/scummvm/scummvm-tools/commit/aaf89b4359ee391708cb73dee855c691e96372a9
Author: D G Turner (digitall at scummvm.org)
Date: 2012-12-01T00:56:17-08:00
Commit Message:
TOOLS: Sync configure --enable-profiling implementation with main repo.
Changed paths:
configure
diff --git a/configure b/configure
index 394b7d9..11e0410 100755
--- a/configure
+++ b/configure
@@ -84,6 +84,7 @@ _need_memalign=no
_debug_build=auto
_release_build=auto
_verbose_build=no
+_enable_prof=no
# Default commands
_ranlib=ranlib
_strip=strip
@@ -332,7 +333,9 @@ Special configuration feature:
Optional Features:
--disable-debug disable building with debugging symbols
--enable-Werror treat warnings as errors
- --enable-verbose-build enable regular echoing of commands during build process
+ --enable-profiling enable profiling
+ --enable-verbose-build enable regular echoing of commands during build
+ process
Optional Libraries:
--with-ogg-prefix=DIR Prefix where libogg is installed (optional)
@@ -460,8 +463,7 @@ for ac_option in $@; do
_release_build=no
;;
--enable-profiling)
- CXXFLAGS="$CXXFLAGS -pg"
- LDFLAGS="$LDFLAGS -pg"
+ _enable_prof=yes
;;
--host=*)
_host=`echo $ac_option | cut -d '=' -f 2`
@@ -1548,6 +1550,15 @@ test -z "$_datadir" && _datadir="$_prefix/share"
test -z "$_mandir" && _mandir="$_prefix/share/man"
test -z "$_libdir" && _libdir="$_prefix/lib"
+#
+# Set variables for profiling.
+# We need to do it here to prevent mess-ups with the tests e.g. on the PSP
+#
+if test "$_enable_prof" = yes ; then
+ CXXFLAGS="$CXXFLAGS -pg"
+ LDFLAGS="$LDFLAGS -pg"
+fi
+
_def_media_path='#define APP_MEDIA_PATH "'$_datadir'"'
echo
More information about the Scummvm-git-logs
mailing list