On 06/03/2010 10:54 AM, Mathieu Suen wrote:
Hi,


I try to build a gst with profiling information.
So I configure gst with:

./configure CFLAGS=-pg

and make give me thix error:

gcc: -pg and -fomit-frame-pointer are incompatible


I guess I should remove the oprion -fomit-frame-pointer but
I don't know the right way of doing it.
Is there a way to compile gst with profiling information?

Try this:

diff --git a/configure.ac b/configure.ac
index b9f4b43..fc2ce06 100644
--- a/configure.ac
+++ b/configure.ac
@@ -264,8 +264,9 @@
      AC_MSG_ERROR([GNU Smalltalk requires GCC 3.3 or later.]) ;;
 esac

-case $host_cpu in
-   i*86) LIBGST_CFLAGS='-fomit-frame-pointer' ;;
+case '$host_cpu: $CFLAGS ' in
+   i*86:*' -pg '*) ;;
+   i*86:*) LIBGST_CFLAGS='-fomit-frame-pointer' ;;
    *) ;;
 esac
 AC_SUBST(LIBGST_CFLAGS)


If you're on the Mac, however, I would use Shark. Much simpler and much more powerful.

Paolo

_______________________________________________
help-smalltalk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-smalltalk

Reply via email to