diff options
| author | Juanma Barranquero | 2008-06-23 21:34:24 +0000 |
|---|---|---|
| committer | Juanma Barranquero | 2008-06-23 21:34:24 +0000 |
| commit | 540c2a333961e8758250e185e59ce59391b39b76 (patch) | |
| tree | db11c30b72eacd4e4d7ec1b7e4424512d0c08a13 /nt | |
| parent | 400aaed216cfb09e5876dbe551775aa366c53ee8 (diff) | |
| download | emacs-540c2a333961e8758250e185e59ce59391b39b76.tar.gz emacs-540c2a333961e8758250e185e59ce59391b39b76.zip | |
* gmake.defs (DEBUG_FLAG, DEBUG_LINK) [!NODEBUG]:
Don't hardcode -gstabs+, use DEBUG_INFO.
* configure.bat (gccdebug): Check for DWARF-2 support in GCC.
Default to stabs if the compiler does not support DWARF-2.
(genmakefiles): Write new variable DEBUG_INFO to config.settings.
Diffstat (limited to 'nt')
| -rw-r--r-- | nt/ChangeLog | 10 | ||||
| -rwxr-xr-x | nt/configure.bat | 18 | ||||
| -rw-r--r-- | nt/gmake.defs | 4 |
3 files changed, 29 insertions, 3 deletions
diff --git a/nt/ChangeLog b/nt/ChangeLog index 4e51ec03bca..84fe115ce50 100644 --- a/nt/ChangeLog +++ b/nt/ChangeLog | |||
| @@ -1,3 +1,13 @@ | |||
| 1 | 2008-06-23 Juanma Barranquero <lekktu@gmail.com> | ||
| 2 | Eli Zaretskii <eliz@gnu.org> | ||
| 3 | |||
| 4 | * gmake.defs (DEBUG_FLAG, DEBUG_LINK) [!NODEBUG]: | ||
| 5 | Don't hardcode -gstabs+, use DEBUG_INFO. | ||
| 6 | |||
| 7 | * configure.bat (gccdebug): Check for DWARF-2 support in GCC. | ||
| 8 | Default to stabs if the compiler does not support DWARF-2. | ||
| 9 | (genmakefiles): Write new variable DEBUG_INFO to config.settings. | ||
| 10 | |||
| 1 | 2008-05-14 Jason Rumney <jasonr@gnu.org> | 11 | 2008-05-14 Jason Rumney <jasonr@gnu.org> |
| 2 | 12 | ||
| 3 | * configure.bat: Remove code dealing with --disable-font-backend. | 13 | * configure.bat: Remove code dealing with --disable-font-backend. |
diff --git a/nt/configure.bat b/nt/configure.bat index 957ed14b949..3dd9a7fcc24 100755 --- a/nt/configure.bat +++ b/nt/configure.bat | |||
| @@ -319,11 +319,26 @@ echo The failed program was: >>config.log | |||
| 319 | type junk.c >>config.log | 319 | type junk.c >>config.log |
| 320 | set mf=-mcpu=i686 | 320 | set mf=-mcpu=i686 |
| 321 | rm -f junk.c junk.o | 321 | rm -f junk.c junk.o |
| 322 | goto compilercheckdone | 322 | goto gccdebug |
| 323 | :gccMtuneOk | 323 | :gccMtuneOk |
| 324 | echo GCC supports -mtune=pentium4 >>config.log | 324 | echo GCC supports -mtune=pentium4 >>config.log |
| 325 | set mf=-mtune=pentium4 | 325 | set mf=-mtune=pentium4 |
| 326 | rm -f junk.c junk.o | 326 | rm -f junk.c junk.o |
| 327 | :gccdebug | ||
| 328 | rem Check for DWARF-2 debug info support, else default to stabs | ||
| 329 | echo main(){} >junk.c | ||
| 330 | echo gcc -c -gdwarf-2 -g3 junk.c >>config.log | ||
| 331 | gcc -c -gdwarf-2 -g3 junk.c >>config.log 2>&1 | ||
| 332 | if not errorlevel 1 goto gccdwarf | ||
| 333 | echo The failed program was: >>config.log | ||
| 334 | type junk.c >>config.log | ||
| 335 | set dbginfo=-gstabs+ | ||
| 336 | rm -f junk.c junk.o | ||
| 337 | goto compilercheckdone | ||
| 338 | :gccdwarf | ||
| 339 | echo GCC supports DWARF-2 >>config.log | ||
| 340 | set dbginfo=-gdwarf-2 -g3 | ||
| 341 | rm -f junk.c junk.o | ||
| 327 | goto compilercheckdone | 342 | goto compilercheckdone |
| 328 | 343 | ||
| 329 | :clOk | 344 | :clOk |
| @@ -474,6 +489,7 @@ rem | |||
| 474 | echo # Start of settings from configure.bat >config.settings | 489 | echo # Start of settings from configure.bat >config.settings |
| 475 | echo COMPILER=%COMPILER%>>config.settings | 490 | echo COMPILER=%COMPILER%>>config.settings |
| 476 | if not "(%mf%)" == "()" echo MCPU_FLAG=%mf%>>config.settings | 491 | if not "(%mf%)" == "()" echo MCPU_FLAG=%mf%>>config.settings |
| 492 | if not "(%dbginfo%)" == "()" echo DEBUG_INFO=%dbginfo%>>config.settings | ||
| 477 | if (%nodebug%) == (Y) echo NODEBUG=1 >>config.settings | 493 | if (%nodebug%) == (Y) echo NODEBUG=1 >>config.settings |
| 478 | if (%noopt%) == (Y) echo NOOPT=1 >>config.settings | 494 | if (%noopt%) == (Y) echo NOOPT=1 >>config.settings |
| 479 | if (%nocygwin%) == (Y) echo NOCYGWIN=1 >>config.settings | 495 | if (%nocygwin%) == (Y) echo NOCYGWIN=1 >>config.settings |
diff --git a/nt/gmake.defs b/nt/gmake.defs index 00ae686c3fa..7afbf099622 100644 --- a/nt/gmake.defs +++ b/nt/gmake.defs | |||
| @@ -262,8 +262,8 @@ ifdef NODEBUG | |||
| 262 | DEBUG_FLAG = | 262 | DEBUG_FLAG = |
| 263 | DEBUG_LINK = | 263 | DEBUG_LINK = |
| 264 | else | 264 | else |
| 265 | DEBUG_FLAG = -gstabs+ -g3 | 265 | DEBUG_FLAG = $(DEBUG_INFO) |
| 266 | DEBUG_LINK = -gstabs+ -g3 | 266 | DEBUG_LINK = $(DEBUG_INFO) |
| 267 | endif | 267 | endif |
| 268 | 268 | ||
| 269 | ifdef NOCYGWIN | 269 | ifdef NOCYGWIN |