aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2007-04-03 10:21:06 +0000
committerEli Zaretskii2007-04-03 10:21:06 +0000
commit5a693cc0410d450863af6489f6cb198f7526ec03 (patch)
treed1908dc3a0b5eef0f6f002d2dc69332f40cc8e25 /src
parentb49b5137049b7ac9939914ce643f9c2ae4c87b5d (diff)
downloademacs-5a693cc0410d450863af6489f6cb198f7526ec03.tar.gz
emacs-5a693cc0410d450863af6489f6cb198f7526ec03.zip
(main): Fix instructions for building Emacs for profiling.
Diffstat (limited to 'src')
-rw-r--r--src/emacs.c5
1 files changed, 3 insertions, 2 deletions
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
1719 /* Set up for profiling. This is known to work on FreeBSD, 1719 /* Set up for profiling. This is known to work on FreeBSD,
1720 GNU/Linux and MinGW. It might work on some other systems too. 1720 GNU/Linux and MinGW. It might work on some other systems too.
1721 Give it a try and tell us if it works on your system. To compile 1721 Give it a try and tell us if it works on your system. To compile
1722 for profiling use something like: 1722 for profiling, add -pg to the switches your platform uses in
1723 `make CFLAGS="-pg -g -O -DPROFILING=1'. */ 1723 CFLAGS and LDFLAGS. For example:
1724 `make CFLAGS="-pg -g -O -DPROFILING=1 LDFLAGS="-pg -g"'. */
1724#if defined (__FreeBSD__) || defined (GNU_LINUX) || defined(__MINGW32__) 1725#if defined (__FreeBSD__) || defined (GNU_LINUX) || defined(__MINGW32__)
1725#ifdef PROFILING 1726#ifdef PROFILING
1726 if (initialized) 1727 if (initialized)