From: Eli Zaretskii Date: Tue, 3 Apr 2007 10:21:06 +0000 (+0000) Subject: (main): Fix instructions for building Emacs for profiling. X-Git-Tag: emacs-pretest-22.0.97~16 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=5a693cc0410d450863af6489f6cb198f7526ec03;p=emacs.git (main): Fix instructions for building Emacs for profiling. --- diff --git a/src/emacs.c b/src/emacs.c index 543f7a8d5ea..d6dd8974e3b 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -1719,8 +1719,9 @@ main (argc, argv /* Set up for profiling. This is known to work on FreeBSD, 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'. */ + for profiling, add -pg to the switches your platform uses in + CFLAGS and LDFLAGS. For example: + `make CFLAGS="-pg -g -O -DPROFILING=1 LDFLAGS="-pg -g"'. */ #if defined (__FreeBSD__) || defined (GNU_LINUX) || defined(__MINGW32__) #ifdef PROFILING if (initialized)