[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: emacs.c (main): fix profiling instructions
From: |
Eli Zaretskii |
Subject: |
Re: emacs.c (main): fix profiling instructions |
Date: |
Sat, 31 Mar 2007 13:12:13 +0300 |
> Date: Fri, 30 Mar 2007 14:11:45 +0200
> From: Markus Triska <address@hidden>
>
> ***************
> *** 1720,1726 ****
> GNU/Linux and MinGW. It might work on some other systems too.
> Give it a try and tell us if it works on your system. To compile
> for profiling use something like:
> ! `make CFLAGS="-pg -g -O -DPROFILING=1'. */
> #if defined (__FreeBSD__) || defined (GNU_LINUX) || defined(__MINGW32__)
> #ifdef PROFILING
> if (initialized)
> --- 1720,1726 ----
> GNU/Linux and MinGW. It might work on some other systems too.
> Give it a try and tell us if it works on your system. To compile
> for profiling use something like:
> ! `./configure CFLAGS="-pg -g -O -DPROFILING=1" LDFLAGS="-pg"'. */
> #if defined (__FreeBSD__) || defined (GNU_LINUX) || defined(__MINGW32__)
> #ifdef PROFILING
> if (initialized)
Why change the flags when running ./configure? Why not simply add
LDFLAGS to the `make' command line? What am I missing?
(Doing that at `make' time has the advantage of being correct for the
MinGW build as well, while your suggestion does not, since the MinGW
build does not run the `configure' shell script.)