# HG changeset patch # User Eli Zaretskii # Date 1175595666 0 # Node ID a6c0b2621f7a93b42c2441e7f2494c70aee1df0b # Parent d4050ac478ab4520813cb77973c4a58a2ffa2baf (main): Fix instructions for building Emacs for profiling. diff -r d4050ac478ab -r a6c0b2621f7a src/emacs.c --- a/src/emacs.c Tue Apr 03 10:12:07 2007 +0000 +++ b/src/emacs.c Tue Apr 03 10:21:06 2007 +0000 @@ -1719,8 +1719,9 @@ /* 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)