|
From: <cn...@us...> - 2009-09-28 22:37:40
|
Revision: 544
http://hgengine.svn.sourceforge.net/hgengine/?rev=544&view=rev
Author: cnlohr
Date: 2009-09-28 22:37:27 +0000 (Mon, 28 Sep 2009)
Log Message:
-----------
add option for gprof
Modified Paths:
--------------
Mercury2/base_set.sh
Modified: Mercury2/base_set.sh
===================================================================
--- Mercury2/base_set.sh 2009-09-28 22:16:16 UTC (rev 543)
+++ Mercury2/base_set.sh 2009-09-28 22:37:27 UTC (rev 544)
@@ -8,11 +8,12 @@
ISMAC=1; fi
-OPTIONS="X11 libxml OGL sse"
+OPTIONS="X11 libxml OGL sse gprof"
OPT_X11=1
OPT_OGL=1
OPT_libxml=1
OPT_sse=1
+OPT_gprof=0
DEFINES="WAS_CONFIGURED USE_MSTRING"
CC_BASE="-O2 -g0 -Wall"
@@ -61,6 +62,11 @@
DEFINES="$DEFINES USE_X11"
fi
+if test $OPT_gprof = 1; then
+ CC_BASE="$CC_BASE -pg"
+ LD_BASE="$LD_BASE -pg"
+fi
+
if test $OPT_OGL = 1; then
NEED_H="GL/gl.h"
NEED_L="$NEED_L GL GLU"
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|