help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-smalltalk] µTrying to compile g st for profiling


From: Paolo Bonzini
Subject: Re: [Help-smalltalk] µTrying to compile g st for profiling
Date: Thu, 03 Jun 2010 14:12:57 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100430 Fedora/3.0.4-3.fc13 Lightning/1.0b2pre Thunderbird/3.0.4

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]