diff options
| author | Paul Eggert | 2018-04-30 10:13:40 -0700 |
|---|---|---|
| committer | Paul Eggert | 2018-04-30 10:14:01 -0700 |
| commit | 4b10800b59eadd532e74a49a35bc26e0e948b231 (patch) | |
| tree | 6d0cac7eed35d5688e2142a9a80d958919d90f0f | |
| parent | 71be806d01c4e135f067bc842a9d684e594b4f35 (diff) | |
| download | emacs-4b10800b59eadd532e74a49a35bc26e0e948b231.tar.gz emacs-4b10800b59eadd532e74a49a35bc26e0e948b231.zip | |
Advise CFLAGS= operand, not in environment, when configuring
Backport from master.
| -rw-r--r-- | etc/DEBUG | 3 | ||||
| -rw-r--r-- | etc/PROBLEMS | 2 | ||||
| -rw-r--r-- | nt/INSTALL | 6 |
3 files changed, 7 insertions, 4 deletions
| @@ -16,7 +16,8 @@ make the debugging easier. Here's the configure-time options we | |||
| 16 | recommend (they are in addition to any other options you might need, | 16 | recommend (they are in addition to any other options you might need, |
| 17 | such as --prefix): | 17 | such as --prefix): |
| 18 | 18 | ||
| 19 | CFLAGS='-O0 -g3' ./configure --enable-checking='yes,glyphs' --enable-check-lisp-object-type | 19 | ./configure --enable-checking='yes,glyphs' --enable-check-lisp-object-type \ |
| 20 | CFLAGS='-O0 -g3' | ||
| 20 | 21 | ||
| 21 | The CFLAGS value is important: debugging optimized code can be very | 22 | The CFLAGS value is important: debugging optimized code can be very |
| 22 | hard. (If the problem only happens with optimized code, you may need | 23 | hard. (If the problem only happens with optimized code, you may need |
diff --git a/etc/PROBLEMS b/etc/PROBLEMS index 1aa497e6e3d..1f7fe00bd65 100644 --- a/etc/PROBLEMS +++ b/etc/PROBLEMS | |||
| @@ -126,7 +126,7 @@ This version of GCC is buggy: see | |||
| 126 | You can work around this error in gcc-4.5 by omitting sibling call | 126 | You can work around this error in gcc-4.5 by omitting sibling call |
| 127 | optimization. To do this, configure Emacs with | 127 | optimization. To do this, configure Emacs with |
| 128 | 128 | ||
| 129 | CFLAGS="-g -O2 -fno-optimize-sibling-calls" ./configure | 129 | ./configure CFLAGS="-g -O2 -fno-optimize-sibling-calls" |
| 130 | 130 | ||
| 131 | ** Emacs compiled with GCC 4.6.1 crashes on MS-Windows when C-g is pressed | 131 | ** Emacs compiled with GCC 4.6.1 crashes on MS-Windows when C-g is pressed |
| 132 | 132 | ||
diff --git a/nt/INSTALL b/nt/INSTALL index 6d0ecdbfbd9..aa670dfc79b 100644 --- a/nt/INSTALL +++ b/nt/INSTALL | |||
| @@ -52,7 +52,8 @@ build will run on Windows 9X and newer systems). | |||
| 52 | You can pass other options to the configure script. Here's a | 52 | You can pass other options to the configure script. Here's a |
| 53 | typical example (for an in-place debug build): | 53 | typical example (for an in-place debug build): |
| 54 | 54 | ||
| 55 | CFLAGS='-O0 -g3' ./configure --prefix=/d/usr/emacs --enable-checking='yes,glyphs' | 55 | ./configure --prefix=/d/usr/emacs --enable-checking='yes,glyphs' \ |
| 56 | CFLAGS='-O0 -g3' | ||
| 56 | 57 | ||
| 57 | 3. After the configure script finishes, it should display the | 58 | 3. After the configure script finishes, it should display the |
| 58 | resulting configuration. After that, type | 59 | resulting configuration. After that, type |
| @@ -461,7 +462,8 @@ build will run on Windows 9X and newer systems). | |||
| 461 | A few frequently used options are needed when you want to produce an | 462 | A few frequently used options are needed when you want to produce an |
| 462 | unoptimized binary with runtime checks enabled: | 463 | unoptimized binary with runtime checks enabled: |
| 463 | 464 | ||
| 464 | CFLAGS='-O0 -g3' ./configure --prefix=PREFIX --enable-checking='yes,glyphs' | 465 | ./configure --prefix=PREFIX --enable-checking='yes,glyphs' \ |
| 466 | CFLAGS='-O0 -g3' | ||
| 465 | 467 | ||
| 466 | Once invoked, the configure script will run for some time, and, if | 468 | Once invoked, the configure script will run for some time, and, if |
| 467 | successful, will eventually produce a summary of the configuration | 469 | successful, will eventually produce a summary of the configuration |