From bf12cc6c7830937b4c1a3df46294e74bea749a5f Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 29 Apr 2018 09:28:11 -0700 Subject: Advise CFLAGS= operand, not in environment, when configuring --- etc/DEBUG | 3 ++- etc/PROBLEMS | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'etc') diff --git a/etc/DEBUG b/etc/DEBUG index a7792952089..49764fc9137 100644 --- a/etc/DEBUG +++ b/etc/DEBUG @@ -16,7 +16,8 @@ make the debugging easier. Here's the configure-time options we 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 diff --git a/etc/PROBLEMS b/etc/PROBLEMS index d19efaae68d..8fb3d746102 100644 --- a/etc/PROBLEMS +++ b/etc/PROBLEMS @@ -126,7 +126,7 @@ This version of GCC is buggy: see 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 -- cgit v1.2.1