recommend (they are in addition to any other options you might need,
such as --prefix):
- CFLAGS='-O0 -g3' ./configure --enable-checking='yes,glyphs' --enable-check-lisp-object-type
+ ./configure --enable-checking='yes,glyphs' --enable-check-lisp-object-type \
+ CFLAGS='-O0 -g3'
The CFLAGS value is important: debugging optimized code can be very
hard. (If the problem only happens with optimized code, you may need
You can work around this error in gcc-4.5 by omitting sibling call
optimization. To do this, configure Emacs with
- CFLAGS="-g -O2 -fno-optimize-sibling-calls" ./configure
+ ./configure CFLAGS="-g -O2 -fno-optimize-sibling-calls"
** Emacs compiled with GCC 4.6.1 crashes on MS-Windows when C-g is pressed
You can pass other options to the configure script. Here's a
typical example (for an in-place debug build):
- CFLAGS='-O0 -g3' ./configure --prefix=/d/usr/emacs --enable-checking='yes,glyphs'
+ ./configure --prefix=/d/usr/emacs --enable-checking='yes,glyphs' \
+ CFLAGS='-O0 -g3'
3. After the configure script finishes, it should display the
resulting configuration. After that, type
A few frequently used options are needed when you want to produce an
unoptimized binary with runtime checks enabled:
- CFLAGS='-O0 -g3' ./configure --prefix=PREFIX --enable-checking='yes,glyphs'
+ ./configure --prefix=PREFIX --enable-checking='yes,glyphs' \
+ CFLAGS='-O0 -g3'
Once invoked, the configure script will run for some time, and, if
successful, will eventually produce a summary of the configuration