aboutsummaryrefslogtreecommitdiffstats
path: root/nt
diff options
context:
space:
mode:
authorJuanma Barranquero2008-06-23 21:34:24 +0000
committerJuanma Barranquero2008-06-23 21:34:24 +0000
commit540c2a333961e8758250e185e59ce59391b39b76 (patch)
treedb11c30b72eacd4e4d7ec1b7e4424512d0c08a13 /nt
parent400aaed216cfb09e5876dbe551775aa366c53ee8 (diff)
downloademacs-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/ChangeLog10
-rwxr-xr-xnt/configure.bat18
-rw-r--r--nt/gmake.defs4
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 @@
12008-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
12008-05-14 Jason Rumney <jasonr@gnu.org> 112008-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
319type junk.c >>config.log 319type junk.c >>config.log
320set mf=-mcpu=i686 320set mf=-mcpu=i686
321rm -f junk.c junk.o 321rm -f junk.c junk.o
322goto compilercheckdone 322goto gccdebug
323:gccMtuneOk 323:gccMtuneOk
324echo GCC supports -mtune=pentium4 >>config.log 324echo GCC supports -mtune=pentium4 >>config.log
325set mf=-mtune=pentium4 325set mf=-mtune=pentium4
326rm -f junk.c junk.o 326rm -f junk.c junk.o
327:gccdebug
328rem Check for DWARF-2 debug info support, else default to stabs
329echo main(){} >junk.c
330echo gcc -c -gdwarf-2 -g3 junk.c >>config.log
331gcc -c -gdwarf-2 -g3 junk.c >>config.log 2>&1
332if not errorlevel 1 goto gccdwarf
333echo The failed program was: >>config.log
334type junk.c >>config.log
335set dbginfo=-gstabs+
336rm -f junk.c junk.o
337goto compilercheckdone
338:gccdwarf
339echo GCC supports DWARF-2 >>config.log
340set dbginfo=-gdwarf-2 -g3
341rm -f junk.c junk.o
327goto compilercheckdone 342goto compilercheckdone
328 343
329:clOk 344:clOk
@@ -474,6 +489,7 @@ rem
474echo # Start of settings from configure.bat >config.settings 489echo # Start of settings from configure.bat >config.settings
475echo COMPILER=%COMPILER%>>config.settings 490echo COMPILER=%COMPILER%>>config.settings
476if not "(%mf%)" == "()" echo MCPU_FLAG=%mf%>>config.settings 491if not "(%mf%)" == "()" echo MCPU_FLAG=%mf%>>config.settings
492if not "(%dbginfo%)" == "()" echo DEBUG_INFO=%dbginfo%>>config.settings
477if (%nodebug%) == (Y) echo NODEBUG=1 >>config.settings 493if (%nodebug%) == (Y) echo NODEBUG=1 >>config.settings
478if (%noopt%) == (Y) echo NOOPT=1 >>config.settings 494if (%noopt%) == (Y) echo NOOPT=1 >>config.settings
479if (%nocygwin%) == (Y) echo NOCYGWIN=1 >>config.settings 495if (%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
262DEBUG_FLAG = 262DEBUG_FLAG =
263DEBUG_LINK = 263DEBUG_LINK =
264else 264else
265DEBUG_FLAG = -gstabs+ -g3 265DEBUG_FLAG = $(DEBUG_INFO)
266DEBUG_LINK = -gstabs+ -g3 266DEBUG_LINK = $(DEBUG_INFO)
267endif 267endif
268 268
269ifdef NOCYGWIN 269ifdef NOCYGWIN