Skip to content

Commit 9b958b9

Browse files
committed
Make it possible to create DLLs with debug information.
1 parent d1b1383 commit 9b958b9

File tree

6 files changed

+22
-2
lines changed

6 files changed

+22
-2
lines changed

ChangeLog

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
2003-05-18 Bruno Haible <bruno@clisp.org>
2+
3+
* lib/Makefile.msvc (DEBUGFLAGS): New variable.
4+
(iconv.lib): Use it.
5+
* src/Makefile.msvc (DEBUGFLAGS): New variable.
6+
* tests/Makefile.msvc (DEBUGFLAGS): New variable.
7+
18
2003-05-17 Bruno Haible <bruno@clisp.org>
29

310
* Version 1.9 released.

lib/Makefile.msvc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,11 @@ PICFLAGS = -GD -DBUILDING_LIBICONV -DBUILDING_DLL
6565

6666
!if $(DEBUG)
6767
OPTIMFLAGS = -Od -Z7
68+
DEBUGFLAGS = -Z7
6869
!else
6970
# Some people prefer -O2 -G6 instead of -O1, but -O2 is not reliable in MSVC5.
7071
OPTIMFLAGS = -D_NDEBUG -O1
72+
DEBUGFLAGS =
7173
!endif
7274

7375
CFLAGS = $(MFLAGS) $(WARN_CFLAGS) $(OPTIMFLAGS) -DHAVE_CONFIG_H -DENABLE_RELOCATABLE=1 -DIN_LIBRARY -DINSTALLDIR=\"$(IIbindir)\" -DNO_XMALLOC -Dset_relocation_prefix=libiconv_set_relocation_prefix -Drelocate=libiconv_relocate
@@ -118,7 +120,7 @@ iconv.lib : $(OBJECTS)
118120

119121
# iconv.dll and iconv.lib are created together.
120122
iconv.lib : $(OBJECTS) $(RESOURCES)
121-
$(CC) $(MFLAGS) -LD $(OBJECTS) $(RESOURCES) -Feiconv.dll
123+
$(CC) $(MFLAGS) $(DEBUGFLAGS) -LD $(OBJECTS) $(RESOURCES) -Feiconv.dll
122124

123125
iconv.res : $(srcdir)/../windows/iconv.rc
124126
rc -Fo iconv.res $(srcdir)/../windows/iconv.rc

libcharset/lib/ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2003-05-18 Bruno Haible <bruno@clisp.org>
2+
3+
* Makefile.msvc (DEBUGFLAGS): New variable.
4+
(charset.lib): Use it.
5+
16
2003-05-07 Bruno Haible <bruno@clisp.org>
27

38
* Makefile.vms: New file.

libcharset/lib/Makefile.msvc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,11 @@ PICFLAGS = -GD
5858

5959
!if $(DEBUG)
6060
OPTIMFLAGS = -Od -Z7
61+
DEBUGFLAGS = -Z7
6162
!else
6263
# Some people prefer -O2 -G6 instead of -O1, but -O2 is not reliable in MSVC5.
6364
OPTIMFLAGS = -D_NDEBUG -O1
65+
DEBUGFLAGS =
6466
!endif
6567

6668
# -DBUILDING_LIBCHARSET: Change expansion of LIBCHARSET_DLL_EXPORTED macro.
@@ -105,7 +107,7 @@ charset.lib : $(OBJECTS)
105107

106108
# charset.dll and charset.lib are created together.
107109
charset.lib : $(OBJECTS) $(RESOURCES)
108-
$(CC) $(MFLAGS) -LD $(OBJECTS) $(RESOURCES) -Fecharset.dll
110+
$(CC) $(MFLAGS) $(DEBUGFLAGS) -LD $(OBJECTS) $(RESOURCES) -Fecharset.dll
109111

110112
charset.res : $(srcdir)/../windows/charset.rc
111113
rc -Fo charset.res $(srcdir)/../windows/charset.rc

src/Makefile.msvc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,11 @@ IIPREFIX = c:\\usr
3838

3939
!if $(DEBUG)
4040
OPTIMFLAGS = -Od -Z7
41+
DEBUGFLAGS = -Z7
4142
!else
4243
# Some people prefer -O2 -G6 instead of -O1, but -O2 is not reliable in MSVC5.
4344
OPTIMFLAGS = -D_NDEBUG -O1
45+
DEBUGFLAGS =
4446
!endif
4547

4648
# Set to -W3 if you want to see maximum amount of warnings, including stupid

tests/Makefile.msvc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,11 @@ MFLAGS=-MD
2626

2727
!if $(DEBUG)
2828
OPTIMFLAGS = -Od -Z7
29+
DEBUGFLAGS = -Z7
2930
!else
3031
# Some people prefer -O2 -G6 instead of -O1, but -O2 is not reliable in MSVC5.
3132
OPTIMFLAGS = -D_NDEBUG -O1
33+
DEBUGFLAGS =
3234
!endif
3335

3436
# Directories used by "make":

0 commit comments

Comments
 (0)